replenish
Call the replenish API to replenish transaction Credentials.
Note: The SDK includes internal logic that automatically triggers Credential replenishment. Therefore, in most cases, you do not need to call this API directly. For configuration details, see the init API.
Method signature
copy
void replenish(@Nullable ACResultCallback<Integer> callback);Request parameters
Item | Type | Description | Required |
callback | ACResultCallback<Integer> | The replenishment result.
| Optional |
Response parameters
N/A
Sample
copy
manager = ACTapManager.getInstance(this.getApplication());
manager.replenish((result, errorCode, errorMsg) ->
log("replenish result:" + result + " errorCode:" + errorCode + " errorMsg:" + errorMsg));