initialize
Initializes the Seam Android SDK. This should be called once at the start of your application.
Example:
try {
SeamSDK.initialize(context, "seam_cst_...")
} catch (seamError: SeamError) {
when (seamError) {
is SeamError.AlreadyInitialized -> {
// handle error when SDK is already initialized
}
is SeamError.InternetConnectionRequired -> {
// handle error when internet connection is required
}
is SeamError.InvalidClientSessionToken -> {
// handle error when client session token is invalid
}
else -> {
// handle other errors
}
}
}
Content copied to clipboard
Parameters
context
the Android context.
clientSessionToken
the client session token for the app user.
Throws
if the SDK is already initialized.
if no internet connection is available.
if the token format is invalid.