checkBalance

open fun checkBalance(@Nullable accountId: String)

Check balance of an account.

Using this method requires feature Balance.

The balance record is updated periodically and after each event but if the user e.g. buys credit using web view, you may want to trigger immediate balance check.

The balance is checked asynchronously. The observer will be notified when it is updated.

Parameters

accountId

ID of the account to update the balance on; null if feature Multiple Accounts is not provided.


open fun checkBalance(@IntRange(from = 0) index: Int)

Check balance of an account.

Using this method requires feature Balance.

The balance record is updated periodically and after each event but if the user e.g. buys credit using web view, you may want to trigger immediate balance check.

The balance is checked asynchronously. The observer will be notified when it is updated.

Parameters

index

Index of the account to update the balance on; 0 ≤ index <getAccountCount; 0 if feature Multiple Accounts is not provided.