StatusCallback

  • StatusCallback is an abstract class for receiving callbacks on global status changes affecting a client of Nearby Messages.

  • It has a public constructor, StatusCallback().

  • It includes a public method, onPermissionChanged(boolean), which is called when permission to use Nearby is granted or revoked for the app.

  • The onPermissionChanged method indicates whether permission is granted or not through a boolean parameter.

public abstract class StatusCallback extends Object

Callbacks for global status changes that affect a client of Nearby Messages.

Public Constructor Summary

Public Method Summary

void
onPermissionChanged(boolean permissionGranted)
Called when permission is granted or revoked for this app to use Nearby.

Inherited Method Summary

Public Constructors

public StatusCallback ()

Public Methods

public void onPermissionChanged (boolean permissionGranted)

Called when permission is granted or revoked for this app to use Nearby.

Parameters
permissionGranted if true, your app is allowed to use Nearby, false otherwise.