kin-android / org.kin.sdk.base / KinAccountContextBase / observePayments
open fun observePayments(mode:
ObservationMode
):
ListObserver
<
KinPayment
>
Retrieves the last N KinPayments sent or received by the account and listens for future payments over time.
Note: Running with ObservationMode.Passive is suggested unless higher data freshness is required.
ObservationMode.Passive - will return the full recorded history and new KinTransactions as a result of actions performed locally. ObservationMode.Active - will return the full recorded history and all new KinTransactions. ObservationMode.ActiveNewOnly - will not return the recorded history, but only new updates from now onwards.
mode
- will change the frequency of updates according to
the rules set in ObservationMode.
Return a ListObserver to listen to the payment history.
open fun observePayments(mode:
ObservationMode
, paymentsListener:
ValueListener
<
List
<
KinPayment
>>):
ListObserver
<
KinPayment
>
See Also