TokenUpdateListener interface

com.yandex.metrica.push

public interface TokenUpdateListener

The interface defines callback methods when updating the token.

To subscribe to token updates, create an instance that implements the TokenUpdateListener interface and pass it to the YandexMetricaPush.setTokenUpdateListener(TokenUpdateListener listener) method.

Methods

void onTokenUpdated(Map<String, String> tokens)

Called when the first token is received or updated.

void onTokenUpdated(Map<String, String> tokens)

Called when the first token is received or updated.

Method descriptions

onTokenUpdated

void onTokenUpdated(Map<String, String> tokens)

Called when the first token is received or updated.

Parameters:
tokens

List of tokens for push providers that the AppMetrica Push SDK was initialized with. The keys can take the values firebase and hms.

tokens

List of tokens for push providers that the AppMetrica Push SDK was initialized with. The keys can take the values firebase and hms.