Skip to content

Commit 3b6ecf0

Browse files
author
Martijn Coenen
committed
Small NFC API docs addition.
Indicate that if the device does not support Bluetooth or WiFI, calling the API is a no-op. Bug: 6620788 Change-Id: Ib261e0e7855d0914e97803b3b808015b72f3a186
1 parent b215726 commit 3b6ecf0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/java/android/nfc/NfcAdapter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ public boolean disable() {
637637
* {@link Activity#onDestroy}. This is guaranteed if you call this API
638638
* during {@link Activity#onCreate}.
639639
*
640+
* <p class="note">If this device does not support alternate transports
641+
* such as Bluetooth or WiFI, calling this method does nothing.
642+
*
640643
* <p class="note">Requires the {@link android.Manifest.permission#NFC} permission.
641644
*
642645
* @param uris an array of Uri(s) to push over Android Beam
@@ -711,6 +714,9 @@ public void setBeamPushUris(Uri[] uris, Activity activity) {
711714
* {@link Activity#onDestroy}. This is guaranteed if you call this API
712715
* during {@link Activity#onCreate}.
713716
*
717+
* <p class="note">If this device does not support alternate transports
718+
* such as Bluetooth or WiFI, calling this method does nothing.
719+
*
714720
* <p class="note">Requires the {@link android.Manifest.permission#NFC} permission.
715721
*
716722
* @param callback callback, or null to disable

0 commit comments

Comments
 (0)