-
public class Composer.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringUSER_PROVIDER_TINYPASS_ACCOUNTSprivate final StringUSER_PROVIDER_PIANO_IDprivate final StringUSER_PROVIDER_JANRAINpublic final static Composer.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinit(Context context, String aid, Composer.Endpoint endpoint, PianoConsents pianoConsents)Initializes the Composer SDK. final Unitinit(Context context, String aid, Composer.Endpoint endpoint)Initializes the Composer SDK. final Unitinit(Context context, String aid)Initializes the Composer SDK. final ComposergetInstance()Retrieves the singleton instance of the Composer class. final StringgetUSER_PROVIDER_TINYPASS_ACCOUNTS()Constant for the user provider "tinypass_accounts". final StringgetUSER_PROVIDER_PIANO_ID()Constant for the user provider "piano_id". final StringgetUSER_PROVIDER_JANRAIN()Constant for the user provider "janrain". -
-
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
initfunction.
-
getUSER_PROVIDER_TINYPASS_ACCOUNTS
final String getUSER_PROVIDER_TINYPASS_ACCOUNTS()
Constant for the user provider "tinypass_accounts".
-
getUSER_PROVIDER_PIANO_ID
final String getUSER_PROVIDER_PIANO_ID()
Constant for the user provider "piano_id".
-
getUSER_PROVIDER_JANRAIN
final String getUSER_PROVIDER_JANRAIN()
Constant for the user provider "janrain".
-
-
-
-