kin-android

kin-android / org.kin.sdk.base / KinAccountContextBase

KinAccountContextBase

abstract class KinAccountContextBase : KinAccountReadOperations, KinPaymentReadOperations

Constructors

Name Summary
<init> KinAccountContextBase()

Properties

Name Summary
accountId abstract val accountId: Id
executors abstract val executors: ExecutorServices
service abstract val service: KinService
storage abstract val storage: Storage

Functions

Name Summary
clearStorage Deletes the storage associated with the accountIdopen fun clearStorage(): Promise<Boolean>
deductFromAccountBalance fun deductFromAccountBalance(payments: List<KinPayment>): Unit
fetchUpdatedBalance fun fetchUpdatedBalance(): Promise<KinBalance>
fetchUpdatedTransactionHistory fun fetchUpdatedTransactionHistory(): Promise<List<KinTransaction>>
getAccount open fun getAccount(accountCallback: Callback<KinAccount>): Unit
getFee fun getFee(): Promise<QuarkAmount>
getPaymentsForTransactionHash Retrieves the KinPayments that were processed in the referred KinTransactionopen fun getPaymentsForTransactionHash(transactionHash: TransactionHash): Promise<List<KinPayment>>
maybeFetchAccountDetails abstract fun maybeFetchAccountDetails(): Promise<KinAccount>
observeBalance Returns the current Balance and listens to future account balance changes.open fun observeBalance(mode: ObservationMode): Observer<KinBalance>open fun observeBalance(mode: ObservationMode, balanceListener: ValueListener<KinBalance>): Observer<KinBalance>
observePayments Retrieves the last N KinPayments sent or received by the account and listens for future payments over time.open fun observePayments(mode: ObservationMode): ListObserver<KinPayment>open fun observePayments(mode: ObservationMode, paymentsListener: ValueListener<List<KinPayment>>): ListObserver<KinPayment>

Inheritors

Name Summary
KinAccountContextImpl Instantiate a KinAccountContextImpl to operate on a KinAccount when you have a PrivateKey Can be used to:class KinAccountContextImpl : KinAccountContextBase, KinAccountContext
KinAccountContextReadOnlyImpl Instantiate a KinAccountContextReadOnlyImpl to operate on a KinAccount when you only have a PublicKey Can be used to:class KinAccountContextReadOnlyImpl : KinAccountContextBase, KinAccountContextReadOnly