Package 

Object Composer.Companion

    • Method Detail

      • init

        @JvmOverloads() final Unit init(Context context, String aid, Composer.Endpoint endpoint, PianoConsents pianoConsents)

        Initializes the Composer SDK.

        This function should be called to initialize the Composer SDK. It requires a valid context, which can be an Activity or Application context, and your AID (Application ID) aid. The optional endpoint parameter allows you to specify a custom API endpoint, but if not provided, the SDK will use the default production endpoint.

        Parameters:
        context - The Activity or Application context.
        aid - Your Application ID (AID).
        endpoint - Custom API endpoint.
        pianoConsents - PianoConsents instance for managing user consent.
      • init

        @JvmOverloads() final Unit init(Context context, String aid, Composer.Endpoint endpoint)

        Initializes the Composer SDK.

        This function should be called to initialize the Composer SDK. It requires a valid context, which can be an Activity or Application context, and your AID (Application ID) aid. The optional endpoint parameter allows you to specify a custom API endpoint, but if not provided, the SDK will use the default production endpoint.

        Parameters:
        context - The Activity or Application context.
        aid - Your Application ID (AID).
        endpoint - Custom API endpoint.
      • init

        @JvmOverloads() final Unit init(Context context, String aid)

        Initializes the Composer SDK.

        This function should be called to initialize the Composer SDK. It requires a valid context, which can be an Activity or Application context, and your AID (Application ID) aid. The optional endpoint parameter allows you to specify a custom API endpoint, but if not provided, the SDK will use the default production endpoint.

        Parameters:
        context - The Activity or Application context.
        aid - Your Application ID (AID).
      • getInstance

         final Composer getInstance()

        Retrieves the singleton instance of the Composer class.

        This function returns the singleton instance of the Composer class. It allows you to access the Composer instance after it has been initialized with the init function.