InitializationStatus

com.salesforce.marketingcloud

A class that represents the initialization status of the MarketingCloudSdk.


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

The initialization status of the SDK.

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

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

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

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

The availability status returned by GoogleApiAvailability.

The error message from playServicesStatus, if any.

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

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

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

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

Any unrecoverable exception encountered during initialization.


11.0.0