interface Cancelable

A Cancelable represents an ongoing operation run by the Terminal SDK. While the operation runs, the Cancelable allows the user to check whether it has completed or cancel it if necessary.

Use of this SDK is subject to the Stripe Terminal Terms:


Link copied to clipboard
abstract val isCompleted: Boolean

Whether the operation has already completed


Link copied to clipboard
abstract fun cancel(callback: Callback)

Attempt to cancel the operation. If the operation cancels successfully, the callback will be called with null. If the cancellation fails for any reason, the callback will instead be called with an Exception detailing the cause of failure.