Adjoe.init(_sdkHash)when your app is starting.
initmethod will return a
Future<void>which succeeds when the SDK has been initialized successfully and fails with an error when the initialization fails.
Futurewill immediately succeed until your app is removed from the heap.
AdjoeOptionsobject in the following way:
android.processfor the application tag in the
Adjoe.isInitialized(). This will return
trueif the SDK is initialized and
falseotherwise. However, you should not condition calling
initon the result of
isInitializedbecause the SDK will do some checks on its own. You should not do something like the following as it can lead to bad user experience:
initwithout checking for
isInitialized. You can however use
isInitializede.g. for debugging or to check whether the SDK is initialized before calling other methods of the SDK like