InitializationStatus

Package 

com.salesforce.marketingcloud

Description 

A class that represents the initialization status of the MarketingCloudSdk.


Nested Types 

Status 

1enum Status : Enum<InitializationStatus.Status>

Enumeration representing the overall outcome of the SDK’s initialization.

Values:

  • SUCCESS - SDK initialized successfully
  • COMPLETED_WITH_DEGRADED_FUNCTIONALITY - SDK initialized but with reduced functionality
  • FAILED - SDK initialization failed

Properties 

status 

1@JvmField
2val status: InitializationStatus.Status

The initialization status of the SDK.

isUsable 

1@JvmField
2val isUsable: Boolean

Whether the SDK initialized sufficiently to be usable. Returns true when status is SUCCESS or COMPLETED_WITH_DEGRADED_FUNCTIONALITY.

initializedComponents 

1@JvmField
2val initializedComponents: List<String>

List of component names that were initialized. Useful for debugging initialization issues.

encryptionChanged 

1@JvmField
2val encryptionChanged: Boolean

Whether the encryption key changed since the last init call. When true, all previously stored data has been cleared.

storageError 

1@JvmField
2val storageError: Boolean

Whether an error occurred initializing SDK storage. When true, the SDK cannot store information and status will be FAILED.

playServicesStatus 

1@JvmField
2val playServicesStatus: Int

The availability status returned by GoogleApiAvailability.

playServicesMessage 

1@JvmField
2val playServicesMessage: String?

The error message from playServicesStatus, if any.

sslProviderEnablementError 

1@JvmField
2val sslProviderEnablementError: Boolean

Whether an error occurred calling ProviderInstaller.installIfNeeded() to ensure required SSL providers are available.

locationsError 

1@JvmField
2val locationsError: Boolean

Whether an error occurred initializing the location manager (when geofencing or proximity are enabled).

messagingPermissionError 

1@JvmField
2val messagingPermissionError: Boolean

Whether region messaging couldn’t be enabled due to missing ACCESS_FINE_LOCATION or ACCESS_BACKGROUND_LOCATION permissions.

proximityError 

1@JvmField
2val proximityError: Boolean

Whether an error occurred initializing the proximity manager. Check getSdkState() for details.

unrecoverableException 

1@JvmField
2val unrecoverableException: Throwable?

Any unrecoverable exception encountered during initialization.


Version 

11.0.0