shadows/framework/src/main/java/org/robolectric/shadows/ShadowNfcAdapter.java
@Implementation
  protected void setOnNdefPushCompleteCallback(
      NfcAdapter.OnNdefPushCompleteCallback callback, Activity activity, Activity... activities) {
    if (activity == null) {
      throw new NullPointerException("activity cannot be null");
    }
    for (Activity a : activities) {
      if (a == null) {
        throw new NullPointerException("activities cannot contain null");
      }
    }
    this.onNdefPushCompleteCallback = callback;
  }
@Implementation
  protected void setOnNdefPushCompleteCallback(
      NfcAdapter.OnNdefPushCompleteCallback callback, Activity activity, Activity... activities) {
    if (activity == null) {
      throw new NullPointerException("activity cannot be null");
    }
    for (Activity a : activities) {
      if (a == null) {
        throw new NullPointerException("activities cannot contain null");
      }
    }
    this.onNdefPushCompleteCallback = callback;
  }
@ Implementation protected void setOnNdefPushCompleteCallback ( NfcAdapter . OnNdefPushCompleteCallback callback , Activity activity , Activity ... activities ) { if ( activity == null ) { throw new NullPointerException ( "activity cannot be null" ) ; } for ( Activity a : activities ) { if ( a == null ) { throw new NullPointerException ( "activities cannot contain null" ) ; } } this . onNdefPushCompleteCallback = callback ; }
Sets callback that should be used on successful Android Beam (TM).

<p>The last registered callback is recalled and can be fetched using {@link
#getOnNdefPushCompleteCallback}.
Sets callback that should be used on successful Android Beam ( TM ) .