DeferredDeeplinkListener interface

com.yandex.metrica

public interface DeferredDeeplinkListener

The interface defines callback methods when requesting a deferred deeplink.

To request a deferred deeplink, create an instance that implements the DeferredDeeplinkListener interface and pass it to the YandexMetrica.requestDeferredDeeplink(DeferredDeeplinkListener listener) method. The method returns the deferred deeplink only at the initial application start after obtaining the Google Play Install Referrer.

Note. Unlike requestDeferredDeeplinkParameters, this interface allows deeplinks without any parameters and deeplinks that are not valid URLs.

Nested classes

Methods

void onError(DeferredDeeplinkListener.Error error, String referrer)

This method is invoked when an error occurs while trying to obtain the parameters of the deferred deeplink.

void onDeeplinkLoaded(String deeplink)

This method is invoked when obtaining the deferred deeplink.

Method descriptions

onError

void onError(DeferredDeeplinkListener.Error error, String referrer)

This method is invoked when an error occurs while trying to obtain the parameters of the deferred deeplink.

Parameters:
error Method error from DeferredDeeplinkListener.Error enumeration.
referrer Google Play Install Referrer if the DeferredDeeplinkListener.Error.PARSE_ERROR error occurred

onDeeplinkLoaded

void onDeeplinkLoaded(String deeplink)

This method is invoked when obtaining the deferred deeplink.

Parameters:
deeplink Value of the deferred deeplink.