Page Summary
-
MessagesOptions.Builderis a builder class for creatingMessagesOptionsobjects. -
It has a public constructor
Builder()to create a new builder instance. -
The
build()method creates the finalMessagesOptionsobject from the builder. -
The
setPermissions(int permissions)method is used to specify the required Nearby permissions.
Builder for MessagesOptions.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| MessagesOptions |
build()
Builds the
MessagesOptions.
|
| MessagesOptions.Builder |
setPermissions(int permissions)
Sets which
NearbyPermissions are requested for Nearby.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public MessagesOptions build ()
Builds the MessagesOptions.
public MessagesOptions.Builder setPermissions (int permissions)
Sets which NearbyPermissions
are requested for Nearby.
By setting a more restrictive scope of permissions, Nearby will shrink its opt in
dialog appropriately. However, ensure that all the publish and subscribe calls are
limited to the provided scope. Otherwise, api calls will fail with error
NearbyMessagesStatusCodes.MISSING_PERMISSIONS.