diff options
| author | Luan Nguyen <luann@google.com> | 2015-04-21 15:59:24 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-21 15:59:24 +0000 |
| commit | 5c1e306502a77d354def3d426dabdacea8cc4055 (patch) | |
| tree | afcd890df39f799f5eefd5b066fc7e3a044e5828 /docs/html/training | |
| parent | c5e73bf9f8a3434571b407f0f1abd701a8e69131 (diff) | |
| parent | 2da31b1ef75f239ee33fea4592cbf0159a0af8b4 (diff) | |
| download | frameworks_base-5c1e306502a77d354def3d426dabdacea8cc4055.zip frameworks_base-5c1e306502a77d354def3d426dabdacea8cc4055.tar.gz frameworks_base-5c1e306502a77d354def3d426dabdacea8cc4055.tar.bz2 | |
am 2da31b1e: am 886e8e11: am 2fdd83a9: am d2545775: am 4c20df0b: am 4aebbfbb: Merge "docs: Add Channel API summary for Wear." into lmp-docs
* commit '2da31b1ef75f239ee33fea4592cbf0159a0af8b4':
docs: Add Channel API summary for Wear.
Diffstat (limited to 'docs/html/training')
| -rw-r--r-- | docs/html/training/wearables/data-layer/index.jd | 24 |
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> |
