public abstract class

SubscribeCallback

extends Object
java.lang.Object
   ↳ com.google.android.gms.nearby.messages.SubscribeCallback

Class Overview

Callback for events which affect subscriptions.

See also:

Summary

Public Constructors
SubscribeCallback()
Public Methods
void onExpired()
The subscription is expired.
[Expand]
Inherited Methods
From class java.lang.Object

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.