Page Summary
-
SubscribeCallback is an abstract class for handling subscription events.
-
It includes a public constructor and a public method called onExpired.
-
The onExpired method is called when a subscription expires due to TTL or user action.
Callback for events which affect subscriptions.
See Also
Public Constructor Summary
Public Method Summary
| void |
onExpired()
The subscription is expired.
|
Inherited Method Summary
Public Constructors
public SubscribeCallback ()
Public Methods
public void onExpired ()
The subscription 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 subscriptions expire.