fromInputStream

fun fromInputStream(inputStream: InputStream, isUserVerificationRequired: Boolean = false, remoteLocaleMap: Map<String, String> = emptyMap(), multimediaExtension: MultimediaCoreExtension? = null, clientType: ClientType = ClientType.MIAW_MOBILE_V1, clientName: ClientName = ClientName.MOBILE_IN_APP_SDK): CoreConfiguration

Parses a CoreConfiguration from a UTF-8 encoded JSON input stream.

The JSON must contain at minimum the Url, OrganizationId, and DeveloperName fields. This is the same format as the config file downloaded from the Embedded Service Deployment settings in Salesforce Setup.

Use this method when you need to load configuration from a custom source (e.g., a network response or encrypted file). For loading from the app's assets/ folder, prefer fromFile which handles asset loading automatically.

Parameters

inputStream

A InputStream containing UTF-8 encoded JSON configuration data.

isUserVerificationRequired

Set to true if the deployment requires user verification.

remoteLocaleMap

Locale-to-language mapping for custom label resolution. See Configuration.remoteLocaleMap.

multimediaExtension

Optional extension enabling voice and video capabilities.

clientType

The client protocol version. Defaults to ClientType.MIAW_MOBILE_V1.

clientName

The SDK product name. Defaults to ClientName.MOBILE_IN_APP_SDK.

Throws

If the stream cannot be read.

If the JSON content cannot be deserialized into a valid configuration.