java.lang.Object |
↳ |
com.google.android.gms.nearby.messages.PublishCallback |
Class Overview
Callback for events which affect published messages.
Summary
Public Methods |
void
|
onExpired()
The published message is expired.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
PublishCallback
()
Public Methods
public
void
onExpired
()
The published message is expired.
Called if any of the following happened:
- The specified TTL for the call elapsed.
- User stopped the Nearby actions for the app.
Using this callback is recommended for cases when you need to update state (e.g. UI
elements) when published messages expire.