express-embed-mobile-sdk-android-release

//sdk/com.adobe.express.embedsdk/ExpressEmbedSdk/Companion/initialize

initialize


fun initialize(hostInfo: HostInfo, configParams: ConfigParams, authProvider: AuthProvider? = null, appContext: Context, sdkCallBacks: EmbedSdkCallbacks? = null, clientAuthProvider: ClientAuthProvider? = null): CCEverywhereInterface

This is the main API which is used for initializing the SDK. Please ensure to call this API only once.

Example

val sdk = ExpressEmbedSdk.initialize( hostInfo = HostInfo( clientId = "your-dev-console-client-id", appName = "MyApp", appVersion = Version("1.0.0"), platformCategory = PlatformCategory.MOBILE ), configParams = ConfigParams( env = Environment.PRODUCTION, locale = "en_US" ), appContext = applicationContext ) // Access workflows sdk.module?.createImageFromText(…)

Return

Promise with CCEverywhereInterface object which can be used to call other APIs of SDK

Parameters

androidJvm

   
hostInfo Host application information containing client ID from Developer Console (3rd party) or IMSS portal (1st party), application name, version
configParams Configuration parameters for specifying locale preferences and environment settings (production, stage)
authProvider Authentication provider for managing authentication and setting IMS session. If not provided, defaults to PRE_SIGNED_IN mode
appContext Android application context required for SDK initialization and resource access
sdkCallBacks Callbacks for SDK lifecycle events

Throws

   
CCEverywhereError if SDK initialization fails or is already in progress