Merge "docs: Iterating on Wear docs - Get Started, Download/Test, Program Overview" into mnc-io-docs
am: ba803db9a6
* commit 'ba803db9a62a58b1d98a0f889aa094e86fbbf6cd':
Docs: Iterating on Wear docs - Bridger API
Change-Id: I7b1e36ebe1bcadb4af2dc70c50333cd4d839b55d
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
page.title=Bridging Mode for Notifications
|
page.title=Bridging Mode for Notifications
|
||||||
meta.keywords="wear-preview"
|
meta.keywords="wear-preview"
|
||||||
page.tags="wear-preview"
|
page.tags="wear-preview"
|
||||||
page.image=images/cards/card-n-sdk_2x.png
|
|
||||||
@jd:body
|
@jd:body
|
||||||
|
|
||||||
<div id="qv-wrapper">
|
<div id="qv-wrapper">
|
||||||
@@ -39,8 +39,8 @@ page.image=images/cards/card-n-sdk_2x.png
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Specifying in the standalone app's Android manifest file that
|
<li>Specifying in the standalone app's Android manifest file that
|
||||||
notifications from the corresponding phone app should <strong>not be
|
notifications from the corresponding phone app should not be
|
||||||
bridged</strong> to the watch
|
bridged to the watch
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>Setting a dismissal ID so notification dismissals are synced across
|
<li>Setting a dismissal ID so notification dismissals are synced across
|
||||||
@@ -60,7 +60,8 @@ page.image=images/cards/card-n-sdk_2x.png
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
com.google.android.wearable.notificationBridgeMode
|
com.google.android.wearable.notificationBridgeMode
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Setting that entry to <code>NO_BRIDGING</code> will prevent bridging:
|
Setting that entry to <code>NO_BRIDGING</code> will prevent bridging:
|
||||||
</p>
|
</p>
|
||||||
@@ -96,7 +97,7 @@ com.google.android.wearable.notificationBridgeMode
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Thus, if bridging should be prevented <strong>when</strong> the watch app
|
Thus, if bridging should be prevented when the watch app
|
||||||
is installed, use the <a href=
|
is installed, use the <a href=
|
||||||
"#preventing_bridging_with_the_bridging_mode_feature">Bridging mode
|
"#preventing_bridging_with_the_bridging_mode_feature">Bridging mode
|
||||||
feature</a>.
|
feature</a>.
|
||||||
@@ -118,7 +119,7 @@ com.google.android.wearable.notificationBridgeMode
|
|||||||
<pre>
|
<pre>
|
||||||
public WearableExtender setDismissalId(String dismissalId)
|
public WearableExtender setDismissalId(String dismissalId)
|
||||||
public String getDismissalId()
|
public String getDismissalId()
|
||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
To enable a dismissal to be synced, use the <code>setDismissalId()</code>
|
To enable a dismissal to be synced, use the <code>setDismissalId()</code>
|
||||||
method. For each notification, pass a globally unique ID, as a string,
|
method. For each notification, pass a globally unique ID, as a string,
|
||||||
@@ -140,7 +141,7 @@ Notification notification = new NotificationCompat.Builder(context)
|
|||||||
<set other fields>
|
<set other fields>
|
||||||
.extend(wearableExtender)
|
.extend(wearableExtender)
|
||||||
.build();
|
.build();
|
||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
Dismissal IDs work if a watch is paired to an Android phone, but not if a
|
Dismissal IDs work if a watch is paired to an Android phone, but not if a
|
||||||
watch is paired to an iPhone.
|
watch is paired to an iPhone.
|
||||||
|
|||||||
Reference in New Issue
Block a user