summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorLuan Nguyen <luann@google.com>2015-04-13 11:02:32 -0700
committerLuan Nguyen <luann@google.com>2015-04-21 13:13:22 -0700
commit34997731954015ce4e946ce696d487db17b848c1 (patch)
tree166a16cdbbc5a5d5c609de46ec4bbd5112076644 /docs/html/training
parent8408cbe3adc8b0df4ae279a2e8689d1066972744 (diff)
downloadframeworks_base-34997731954015ce4e946ce696d487db17b848c1.zip
frameworks_base-34997731954015ce4e946ce696d487db17b848c1.tar.gz
frameworks_base-34997731954015ce4e946ce696d487db17b848c1.tar.bz2
cherrypick from lmp-docs docs: Add Channel API summary for Wear.
Original Change-Id: I447e58264e142a5e04aaf520d31dc4ced2506ecb bug: 20089257 Change-Id: I25ad962ef847574d2152229ebb2ce268483c2a68
Diffstat (limited to 'docs/html/training')
-rw-r--r--docs/html/training/wearables/data-layer/index.jd24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/html/training/wearables/data-layer/index.jd b/docs/html/training/wearables/data-layer/index.jd
index 85b2c33..b49ea4d 100644
--- a/docs/html/training/wearables/data-layer/index.jd
+++ b/docs/html/training/wearables/data-layer/index.jd
@@ -58,6 +58,30 @@ the data layer:</p>
<a href="{@docRoot}reference/com/google/android/gms/wearable/WearableListenerService.html"><code>WearableListenerService</code></a>
lets you listen for changes only when the user is actively using your app.
</dd>
+
+ <dt><b>Channel</b></dt>
+ <dd>
+ You can use the
+ <a href="{@docRoot}reference/com/google/android/gms/wearable/ChannelApi.html"><code>ChannelApi</code></a>
+ class to transfer large data items, such as music and movie files, from a handheld to a wearable
+ device. The Channel API for data transfer has the following benefits:
+ <ul>
+ <li>Transfer large data files between two or more connected devices, without
+ the automatic synchronization provided when using
+ <a href="{@docRoot}reference/com/google/android/gms/wearable/Asset.html"><code>Asset</code></a>
+ objects attached to
+ <a href="{@docRoot}reference/com/google/android/gms/wearable/DataItem.html"><code>DataItem</code></a>
+ objects. The Channel API saves disk space unlike the
+ <a href="{@docRoot}reference/com/google/android/gms/wearable/DataApi.html"><code>DataApi</code></a>
+ class, which creates a copy of the assets on the local device before synchronizing with
+ connected devices.</li>
+ <li>Reliably send a file that is too large in size to send using the
+ <a href="{@docRoot}reference/com/google/android/gms/wearable/MessageApi.html"><code>MessageApi</code></a>
+ class.</li>
+ <li>Transfer streamed data, such as music pulled from a network server or voice
+ data from the microphone.</li>
+ </ul>
+ </dd>
</dl>
<p class="warning"><b>Warning:</b>