MessagesOptions.Builder

public static classMessagesOptions.BuilderextendsObject

Builder forMessagesOptions.

Public Constructor Summary

Public Method Summary

MessagesOptions
build()
Builds the MessagesOptions.
MessagesOptions.Builder
setPermissions(int permissions)
Sets which NearbyPermissionsare requested for Nearby.

Inherited Method Summary

Public Constructors

publicBuilder()

Public Methods

publicMessagesOptions build()

Builds theMessagesOptions.

publicMessagesOptions.Builder setPermissions(int permissions)

Sets whichNearbyPermissions 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.