Java android.os CancellationSignal fields, constructors, methods, implement or subclass

Example usage for Java android.os CancellationSignal fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os CancellationSignal.

The text is from its open source code.

Constructor

CancellationSignal()
Creates a cancellation signal, initially not canceled.

Method

booleanisCanceled()
Returns true if the operation has been canceled.
voidsetOnCancelListener(OnCancelListener listener)
Sets the cancellation listener to be called when canceled.
voidthrowIfCanceled()
Throws OperationCanceledException if the operation has been canceled.