java.lang.Object | |
↳ | com.google.android.gms.nearby.Nearby |
API for communication with nearby devices.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONNECTIONS_API |
This field is deprecated.
Use getConnectionsClient(Context) instead. |
||||||||||
Connections |
This field is deprecated.
Use getConnectionsClient(Context) instead. |
||||||||||
MESSAGES_API |
This field is deprecated.
Use getMessagesClient(Context) instead. |
||||||||||
Messages |
This field is deprecated.
Use getMessagesClient(Context) instead. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of
ConnectionsClient . | |||||||||||
Creates a new instance of
ConnectionsClient . | |||||||||||
Creates a new instance of
MessagesClient . | |||||||||||
Creates a new instance of
MessagesClient . | |||||||||||
Creates a new instance of
MessagesClient . | |||||||||||
Creates a new instance of
MessagesClient . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This field is deprecated.
Use getConnectionsClient(Context)
instead.
This field is deprecated.
Use getConnectionsClient(Context)
instead.
This field is deprecated.
Use getMessagesClient(Context)
instead.
This field is deprecated.
Use getMessagesClient(Context)
instead.
Creates a new instance of ConnectionsClient
. Resolvable connections errors will create
a system notification that the user can tap in order to resolve the error.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
ConnectionsClient |
Creates a new instance of ConnectionsClient
. The given Activity
will be used to
automatically prompt for resolution of resolvable connection errors.
Parameters | |
---|---|
activity |
Activity |
Returns | |
---|---|
ConnectionsClient |
Creates a new instance of MessagesClient
. The given Activity will be used to
automatically prompt for resolution of resolvable connection errors.
Parameters | |
---|---|
activity |
Activity |
options |
MessagesOptions |
Returns | |
---|---|
MessagesClient |
Creates a new instance of MessagesClient
. The given Activity will be used to
automatically prompt for resolution of resolvable connection errors.
Parameters | |
---|---|
activity |
Activity |
Returns | |
---|---|
MessagesClient |
Creates a new instance of MessagesClient
. Resolvable connections errors will create a
system notification that the user can tap in order to resolve the error.
Parameters | |
---|---|
context |
Context |
options |
MessagesOptions |
Returns | |
---|---|
MessagesClient |
Creates a new instance of MessagesClient
. Resolvable connections errors will create a
system notification that the user can tap in order to resolve the error.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
MessagesClient |