Enum Class SDKInitializer
- All Implemented Interfaces:
Serializable,Comparable<SDKInitializer>,Constable
This enum contains the public APIs for initializing the SDK before starting the payment.
This API registers all the required modules in the SDK.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(android.content.Context context) Set the Android applicationContextto SDK.voidconfigure(android.content.Context context, android.app.Notification notification, CustomConfiguration customConfiguration) Deprecated.voidconfigure(android.content.Context context, CustomConfiguration customConfiguration) Set the Android applicationContextto SDK.com.thalesgroup.gemalto.securelog.SecureLogconfigureSecureLog(com.thalesgroup.gemalto.securelog.SecureLogConfig config) Configure the secure log.voidinitialize(android.content.Context context) Initialize the SDK with default configuration.voidinitialize(android.content.Context context, android.app.Notification notification, CustomConfiguration configuration) Deprecated.since 6.8.0 : Useinitialize(Context, CustomConfiguration)voidinitialize(android.content.Context context, CustomConfiguration configuration) Initialize the SDK with customized configuration.voidinitialize(android.content.Context context, CustomConfiguration configuration, SDKControllerListener sdkControllerListener) Initialize the SDK.voidinitialize(android.content.Context context, SDKControllerListener sdkControllerListener) Initialize the SDK with default configuration.voidinitialize(android.content.Context context, SDKControllerListener sdkControllerListener, android.app.Notification notification) Deprecated.since 6.8.0 : Useinitialize(Context, SDKControllerListener)voidinitialize(android.content.Context context, SDKControllerListener sdkControllerListener, android.app.Notification notification, CustomConfiguration configuration) Deprecated.since 6.8.0 : Useinitialize(Context,CustomConfiguration, SDKControllerListener)static SDKInitializerReturns the enum constant of this class with the specified name.static SDKInitializer[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
configure
public void configure(@NonNull android.content.Context context, @Nullable android.app.Notification notification, @Nullable CustomConfiguration customConfiguration) throws InternalComponentException Deprecated.6.8.0 : Useconfigure(Context, CustomConfiguration)Set the Android applicationContextto SDK. This is a safeguard API that ensures proper context is set to SDK as early as the Application entry point. This API is recommended to be called synchronously inside theApplication.onCreate()to avoid possible sdk errors raised due to null context, especially when the MPA has multiple entry points and can mistakenly invoke any SDK API before initialization completes.Note: This API has to be called before calling following initialization APIs
- Parameters:
context- AndroidContext- Throws:
InternalComponentException- when some internal errors occurred, we will throw this exception with error co- Since:
- 6.4.3
-
configure
public void configure(@NonNull android.content.Context context, @NonNull CustomConfiguration customConfiguration) throws InternalComponentException Set the Android applicationContextto SDK. This is a safeguard API that ensures proper context is set to SDK as early as the Application entry point. This API is recommended to be called synchronously inside theApplication.onCreate()to avoid possible sdk errors raised due to null context, especially when the MPA has multiple entry points and can mistakenly invoke any SDK API before initialization completes.Note: This API has to be called before calling following initialization APIs
- Parameters:
context- AndroidContextcustomConfiguration- custom configurations used by application.- Throws:
InternalComponentException- when some internal errors occurred, we will throw this exception with error co- Since:
- 6.8.0
-
configure
Set the Android applicationContextto SDK. This configures the SDK with default configuration. This is a safeguard API that ensures proper context is set to SDK as early as the Application entry point. This API is recommended to be called synchronously inside theApplication.onCreate()to avoid possible sdk errors raised due to null context, especially when the MPA has multiple entry points and can mistakenly invoke any SDK API before initialization completes.Note: This API has to be called before calling following initialization APIs
- Parameters:
context- AndroidContext- Throws:
InternalComponentException- when some internal errors occurred, we will throw this exception with error co- Since:
- 6.8.0
-
initialize
public void initialize(android.content.Context context, SDKControllerListener sdkControllerListener, @Nullable android.app.Notification notification) Deprecated.since 6.8.0 : Useinitialize(Context, SDKControllerListener)Initialize the SDK with default configuration. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized. Note: Before calling this API, please ensureconfigure(Context, Notification, CustomConfiguration)is called.- Parameters:
context- Android ContextsdkControllerListener- notifies SDK Initialization such as complete, in progress and error occurrednotification-Notification
-
initialize
public void initialize(android.content.Context context, SDKControllerListener sdkControllerListener) Initialize the SDK with default configuration. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized. Note: Before calling this API, please ensureconfigure(Context, Notification, CustomConfiguration)is called.- Parameters:
context- Android ContextsdkControllerListener- notifies SDK Initialization such as complete, in progress and error occurred- Since:
- 6.8.0
-
initialize
public void initialize(android.content.Context context, SDKControllerListener sdkControllerListener, @Nullable android.app.Notification notification, @Nullable CustomConfiguration configuration) Deprecated.since 6.8.0 : Useinitialize(Context,CustomConfiguration, SDKControllerListener)Initialize the SDK. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized. Note: Before calling this API, please ensureconfigure(Context, Notification, CustomConfiguration)is called.- Parameters:
context- Android ContextsdkControllerListener- notifies SDK Initialization such as complete, in progress and error occurrednotification-Notificationconfiguration- custom configurations used by application.- Since:
- 6.4.0
-
initialize
public void initialize(@NonNull android.content.Context context, @NonNull CustomConfiguration configuration, @NonNull SDKControllerListener sdkControllerListener) Initialize the SDK. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized. Note: Before calling this API, please ensureconfigure(Context, Notification, CustomConfiguration)is called.- Parameters:
context- Android ContextsdkControllerListener- notifies SDK Initialization such as complete, in progress and error occurredconfiguration- custom configurations used by application.- Since:
- 6.8.0
-
initialize
public void initialize(@NonNull android.content.Context context, @Nullable android.app.Notification notification, @Nullable CustomConfiguration configuration) throws SDKInitializationException Deprecated.since 6.8.0 : Useinitialize(Context, CustomConfiguration)Initialize the SDK. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized.- Parameters:
context- Android Contextnotification-Notificationconfiguration- custom configurations used by application.- Throws:
SDKInitializationException- Since:
- 6.6.0
-
initialize
public void initialize(@NonNull android.content.Context context, @NonNull CustomConfiguration configuration) throws SDKInitializationException Initialize the SDK with customized configuration. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized.- Parameters:
context- Android Contextconfiguration- custom configurations used by application.- Throws:
SDKInitializationException- Since:
- 6.8.0
-
initialize
Initialize the SDK with default configuration. This is to be called before using other features from the SDK. Since 6.6, this call is idempotent, and can be called multiple times. SDK manages the state internally if it is already initialized.- Parameters:
context- Android Context- Throws:
SDKInitializationException- Since:
- 6.8.0
-
configureSecureLog
public com.thalesgroup.gemalto.securelog.SecureLog configureSecureLog(com.thalesgroup.gemalto.securelog.SecureLogConfig config) Configure the secure log. This will enable the securely logging feature.- Parameters:
config- The SecureLog configuration. Refer to SecureLogConfig.Builder() for more information.- Returns:
- The SecureLog object
- Since:
- 6.6.0
-
configure(Context, CustomConfiguration)