initialize

suspend fun initialize(context: Context, clientSessionToken: String)

Initializes the Seam Android SDK. This should be called once at the start of your application.

This method is thread-safe and idempotent. Multiple calls with the same token will have no effect. Calls with different tokens will clear the cache.

Parameters

context

the Android context.

clientSessionToken

the client session token for the app user. Must start with "seam_cst".

Throws

if the token format is invalid.