public abstract @interface

NearbyPermissions

implements Annotation
com.google.android.gms.nearby.messages.NearbyPermissions

Class Overview

Determines the scope of permissions Nearby will ask for at connection time.

Calls to Messages#Publish() and Messages#Subscribe() require a Strategy that matches the permissions you've requested. For example, attempting to subscribe using BLE, but only requesting the MICROPHONE permission will result in a failure.

Summary

Constants
int BLE
int BLUETOOTH
int DEFAULT
int MICROPHONE
int NONE
[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation

Constants

public static final int BLE

Constant Value: 2 (0x00000002)

public static final int BLUETOOTH

Constant Value: 6 (0x00000006)

public static final int DEFAULT

Constant Value: -1 (0xffffffff)

public static final int MICROPHONE

Constant Value: 1 (0x00000001)

public static final int NONE

Constant Value: 0 (0x00000000)