SdkDiagnostics

Container for SDK diagnostics observers.

Use this class to register callbacks for internal SDK diagnostic events and pass them to SentianceOptions.Builder.diagnostics(...) during SDK initialization.

SdkDiagnostics API

getGooglePlayServicesObserver

@Nullable GooglePlayServicesObserver getGooglePlayServicesObserver()

Returns the observer for Google Play Services related diagnostic events. Returns null if no Google Play Services observer is configured.

getServiceLifecycleObserver

@Nullable ServiceLifecycleObserver getServiceLifecycleObserver()

Returns the observer for SDK service lifecycle diagnostic events. Returns null if no service lifecycle observer is configured.

SdkDiagnostics.Builder API

Builder class for SdkDiagnostics.

Builder

Builder()

Creates a builder used to configure diagnostics observers.

googlePlayServicesObserver

Registers an observer for Google Play Services related diagnostic events. Returns the same builder instance for chaining.

serviceLifecycleObserver

Registers an observer for SDK service lifecycle diagnostic events. Returns the same builder instance for chaining.

build

Builds and returns a SdkDiagnostics instance containing the configured observers.

Example

Last updated