java.lang.Object | |
↳ | com.google.android.gms.nearby.messages.MessageListener |
A listener for receiving subscribed messages. These callbacks will be delivered when messages are found or lost.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when messages are found.
| |||||||||||
Called when a message is no longer detectable nearby.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Called when messages are found.
This method is called the first time the message is seen nearby. After a message has
been lost (see onLost(Message)
), it's eligible for onFound(Message)
again.
message | The found message. |
---|
Called when a message is no longer detectable nearby.
Note: This callback currently works best for messages attached to BLE beacons. For other messages, it may not be called in a timely fashion, or at all.
This method will not be called repeatedly (unless the message is found again between lost calls).
message | The lost message. |
---|