@@ -208,7 +208,9 @@ public final class NfcAdapter {
208208 final NfcActivityManager mNfcActivityManager ;
209209
210210 /**
211- * @see {@link #setNdefPushMessageCallback}
211+ * A callback to be invoked when the system successfully delivers your {@link NdefMessage}
212+ * to another device.
213+ * @see #setOnNdefPushCompleteCallback
212214 */
213215 public interface OnNdefPushCompleteCallback {
214216 /**
@@ -217,13 +219,21 @@ public interface OnNdefPushCompleteCallback {
217219 * <p>This callback is usually made on a binder thread (not the UI thread).
218220 *
219221 * @param event {@link NfcEvent} with the {@link NfcEvent#nfcAdapter} field set
220- * @see {@link #setNdefPushMessageCallback}
222+ * @see #setNdefPushMessageCallback
221223 */
222224 public void onNdefPushComplete (NfcEvent event );
223225 }
224226
225227 /**
226- * @see {@link #setCeateNdefMessageCallback}
228+ * A callback to be invoked when another NFC device capable of NDEF push (Android Beam)
229+ * is within range.
230+ * <p>Implement this interface and pass it to {@link
231+ * NfcAdapter#setNdefPushMessageCallback setNdefPushMessageCallback()} in order to create an
232+ * {@link NdefMessage} at the moment that another device is within range for NFC. Using this
233+ * callback allows you to create a message with data that might vary based on the
234+ * content currently visible to the user. Alternatively, you can call {@link
235+ * #setNdefPushMessage setNdefPushMessage()} if the {@link NdefMessage} always contains the
236+ * same data.
227237 */
228238 public interface CreateNdefMessageCallback {
229239 /**
@@ -507,13 +517,15 @@ public boolean disable() {
507517 * <p>Pass a null NDEF message to disable foreground NDEF push in the
508518 * specified activities.
509519 *
510- * <p>One or more activities must be specified.
520+ * <p>At least one activity must be specified, and usually only one is necessary .
511521 *
512522 * <p class="note">Requires the {@link android.Manifest.permission#NFC} permission.
513523 *
514524 * @param message NDEF message to push over NFC, or null to disable
515- * @param activity an activity to enable for NDEF push (at least one is required)
516- * @param activities zero or more additional activities to enable for NDEF Push
525+ * @param activity an activity in which NDEF push should be enabled to share the provided
526+ * NDEF message
527+ * @param activities optional additional activities that should also enable NDEF push with
528+ * the provided NDEF message
517529 */
518530 public void setNdefPushMessage (NdefMessage message , Activity activity ,
519531 Activity ... activities ) {
@@ -544,13 +556,15 @@ public void setNdefPushMessage(NdefMessage message, Activity activity,
544556 * <p>Pass a null callback to disable the callback in the
545557 * specified activities.
546558 *
547- * <p>One or more activities must be specified.
559+ * <p>At least one activity must be specified, and usually only one is necessary .
548560 *
549561 * <p class="note">Requires the {@link android.Manifest.permission#NFC} permission.
550562 *
551563 * @param callback callback, or null to disable
552- * @param activity an activity to enable for NDEF push (at least one is required)
553- * @param activities zero or more additional activities to enable for NDEF Push
564+ * @param activity an activity in which NDEF push should be enabled to share an NDEF message
565+ * that's retrieved from the provided callback
566+ * @param activities optional additional activities that should also enable NDEF push using
567+ * the provided callback
554568 */
555569 public void setNdefPushMessageCallback (CreateNdefMessageCallback callback , Activity activity ,
556570 Activity ... activities ) {
0 commit comments