Interface OpenWrapSDKInitializer
-
- All Implemented Interfaces:
public interface OpenWrapSDKInitializerInterface for initializing the OpenWrap SDK.
It provides a method to initialize the OpenWrap SDK with the given context, SDK configuration, and a listener to notify about initialization events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceOpenWrapSDKInitializer.ListenerImplementers will receive notifications about the success or failure of OpenWrapSDK.initialize.
-
Method Summary
Modifier and Type Method Description abstract Unitinitialize(Context context, OpenWrapSDKConfig sdkConfig, OpenWrapSDKInitializer.Listener listener)Initializes the OpenWrap SDK with the specified configuration. abstract BooleanisInitialized()Checks if the OpenWrap SDK has been initialized. -
-
Method Detail
-
initialize
@AnyThread() abstract Unit initialize(Context context, OpenWrapSDKConfig sdkConfig, OpenWrapSDKInitializer.Listener listener)
Initializes the OpenWrap SDK with the specified configuration.
This function sets up the OpenWrap SDK using the provided context and SDK configuration. Upon successful initialization, it notifies the supplied listener of the success.
- Parameters:
context- The context used for SDK initialization.sdkConfig- The config with publisher-id and profile-ids for the OpenWrap SDK.listener- A callback interface for receiving the initialization result.
-
isInitialized
abstract Boolean isInitialized()
Checks if the OpenWrap SDK has been initialized.
This function evaluates whether all necessary initialization process has been completed successfully.
- Returns:
Boolean - Returns
trueif OpenWrap SDK initialization has been completed successfully, otherwise returnsfalse.
-
-
-
-