DeferredDeeplinkParametersListener interface

com.yandex.metrica

public interface DeferredDeeplinkParametersListener

The interface defines callback methods when requesting parameters of a deferred deeplink.

To request the deferred deeplink parameters, create an instance that implements the DeferredDeeplinkParametersListener interface and pass it to the YandexMetrica.requestDeferredDeeplinkParameters(DeferredDeeplinkParametersListener listener method. The method returns the deferred deeplink parameters only at the first application start after Google Play Install Referrer obtaining.

Nested classes

Methods

voidonError(DeferredDeeplinkParametersListener.Error error, String referrer)

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

voidonParametersLoaded(Map<String, String> parameters)

This method is invoked when obtaining the parameters of the deferred deeplink.

Method descriptions

onError

void onError(DeferredDeeplinkParametersListener.Error error, String referrer)

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

Parameters:
errorError the enumeration DeferredDeeplinkParametersListener.Error enumeration.
referrerGoogle Play Install Referrer, if the DeferredDeeplinkParametersListener.Error.PARSE_ERROR error occurred

onParametersLoaded

void onParametersLoaded(Map<String, String> parameters)

This method is invoked when obtaining the parameters of the deferred deeplink.

Parameters:
parametersSet of parameters for the deferred deeplink.