Interface OpenWrapSDKInitializer

  • All Implemented Interfaces:

    
    public interface OpenWrapSDKInitializer
    
                        

    Interface 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 interface OpenWrapSDKInitializer.Listener

      Implementers will receive notifications about the success or failure of OpenWrapSDK.initialize.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit initialize(Context context, OpenWrapSDKConfig sdkConfig, OpenWrapSDKInitializer.Listener listener) Initializes the OpenWrap SDK with the specified configuration.
      abstract Boolean isInitialized() Checks if the OpenWrap SDK has been initialized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 true if OpenWrap SDK initialization has been completed successfully, otherwise returns false.