Package io.appmetrica.analytics
Interface StartupParamsCallback
public interface StartupParamsCallback
Callback to notify about params' changes.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Possible values that are passed when callingonRequestError(Reason, Result)
method.static final class
Objects of this class contain information about retrieved startup parameters. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The key for device id at [List] in [AppMetrica.requestStartupParams]static final String
The key for device id hash at [List] in [AppMetrica.requestStartupParams]static final String
The key for uuid at [List] in [AppMetrica.requestStartupParams] -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the startup params (Uuid, DeviceId, Urls, Clids) are obtained.void
onRequestError
(StartupParamsCallback.Reason reason, StartupParamsCallback.Result partialResult) Called when the startup params couldn't be obtained for some reason.
-
Field Details
-
APPMETRICA_UUID
The key for uuid at [List] in [AppMetrica.requestStartupParams]- See Also:
-
APPMETRICA_DEVICE_ID
The key for device id at [List] in [AppMetrica.requestStartupParams]- See Also:
-
APPMETRICA_DEVICE_ID_HASH
The key for device id hash at [List] in [AppMetrica.requestStartupParams]- See Also:
-
-
Method Details
-
onReceive
Called when the startup params (Uuid, DeviceId, Urls, Clids) are obtained.- Parameters:
result
- theStartupParamsCallback.Result
containing startup params.
-
onRequestError
void onRequestError(@NonNull StartupParamsCallback.Reason reason, @Nullable StartupParamsCallback.Result partialResult) Called when the startup params couldn't be obtained for some reason.- Parameters:
reason
- the reason explaining why startup params could not be obtained.partialResult
- theStartupParamsCallback.Result
containing startup params that could be obtained.
-