registerPlugin
Call the registerPlugin API to register SPI extension functions.
Method Signature
copy
void registerPlugin(Class<T> clazz, T instance);Request parameters
Item | Type | Description | Required |
Class<T> | Extension functions to inject. | Required | |
instance | T | Corresponding instance. | Required |
Available functions for clazz injection:
Item | Description |
Proxy network requests. | |
Transaction authentication. | |
Proxy configurations. Enables the integrating party to customize configuration delivery and modify internal SDK implementation through multiple remote configuration projects. | |
Manages log output. Enables the integrator party to customize log printing to access internal SDK log output. | |
| Monitors the events which are triggered inside the SDK. | |
| Implements and manages your own thread pool. | |
| Enables the SDK to request device fingerprints from the MPP. | |
| Proxy used for encryption and decryption. | |
| Service for data storage in shared preferences. |
Response parameters
N/A
Sample
copy
manager = ACTapManager.getInstance(this.getApplication()).isPaymentAvailable();
manager.registerPlugin(LoggerProxy.class, new CustomLogger());