Android APIs
public class

NearbyMessagesStatusCodes

extends CommonStatusCodes
java.lang.Object
   ↳ com.google.android.gms.common.api.CommonStatusCodes
     ↳ com.google.android.gms.nearby.messages.NearbyMessagesStatusCodes

Class Overview

Nearby.Messages specific status codes, for use in getStatusCode().

Summary

Constants
int APP_NOT_OPTED_IN Status code indicating that the User has not granted the calling application permission to use Nearby.Messages.
int BLE_ADVERTISING_UNSUPPORTED The client requested an operation that requires Bluetooth Low Energy advertising (such as publishing with BLE_ONLY), but this feature is not supported.
int BLE_SCANNING_UNSUPPORTED The client requested an operation that requires Bluetooth Low Energy scanning (such as subscribing with BLE_ONLY), but this feature is not supported.
int BLUETOOTH_OFF Bluetooth is currently off.
int TOO_MANY_PENDING_INTENTS The app has issued more than 5 PendingIntent to the Messages#subscribe.
[Expand]
Inherited Constants
From class com.google.android.gms.common.api.CommonStatusCodes
Public Methods
static String getStatusCodeString(int statusCode)
[Expand]
Inherited Methods
From class com.google.android.gms.common.api.CommonStatusCodes
From class java.lang.Object

Constants

public static final int APP_NOT_OPTED_IN

Status code indicating that the User has not granted the calling application permission to use Nearby.Messages. Resolution: The application can use the returned PendingIntent to request user consent.

Constant Value: 2802 (0x00000af2)

public static final int BLE_ADVERTISING_UNSUPPORTED

The client requested an operation that requires Bluetooth Low Energy advertising (such as publishing with BLE_ONLY), but this feature is not supported.

Constant Value: 2821 (0x00000b05)

public static final int BLE_SCANNING_UNSUPPORTED

The client requested an operation that requires Bluetooth Low Energy scanning (such as subscribing with BLE_ONLY), but this feature is not supported.

Constant Value: 2822 (0x00000b06)

public static final int BLUETOOTH_OFF

Bluetooth is currently off.

Constant Value: 2820 (0x00000b04)

public static final int TOO_MANY_PENDING_INTENTS

The app has issued more than 5 PendingIntent to the Messages#subscribe. Some requests need to be removed before adding more.

Constant Value: 2801 (0x00000af1)

Public Methods

public static String getStatusCodeString (int statusCode)

Returns
  • An untranslated debug (not user-friendly!) string based on the given status code.