java.lang.Object | ||
↳ | com.google.android.gms.common.api.CommonStatusCodes | |
↳ | com.google.android.gms.nearby.connection.ConnectionsStatusCodes |
Status codes for nearby connections results.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATUS_ALREADY_ADVERTISING | The app is already advertising; call stopAdvertising() before trying to advertise again. | |||||||||
int | STATUS_ALREADY_CONNECTED_TO_ENDPOINT | The app is already connected to the specified endpoint. | |||||||||
int | STATUS_ALREADY_DISCOVERING | The app is already discovering the specified application ID; call stopDiscovery() before trying to advertise again. | |||||||||
int | STATUS_CONNECTION_REJECTED | The remote endpoint rejected the connection request. | |||||||||
int | STATUS_ERROR | The operation failed, without any more information. | |||||||||
int | STATUS_NETWORK_NOT_CONNECTED | The device is not connected to a network (over Wifi or Ethernet). | |||||||||
int | STATUS_NOT_CONNECTED_TO_ENDPOINT | The remote endpoint is not connected; messages cannot be sent to it. | |||||||||
int | STATUS_OK | The operation was successful. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an untranslated debug (not user-friendly!) string based on the current status code.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The app is already advertising; call stopAdvertising() before trying to advertise again.
The app is already connected to the specified endpoint. Multiple connections to a remote endpoint cannot be maintained simultaneously.
The app is already discovering the specified application ID; call stopDiscovery() before trying to advertise again.
The remote endpoint rejected the connection request.
The operation failed, without any more information.
The device is not connected to a network (over Wifi or Ethernet). Prompt the user to connect their device when this status code is returned.
The remote endpoint is not connected; messages cannot be sent to it.
The operation was successful.
Returns an untranslated debug (not user-friendly!) string based on the current status code.