/**@class android.os.CancellationSignal @extends java.lang.Object Provides the ability to cancel an operation in progress. */ var CancellationSignal = { /**Returns true if the operation has been canceled. @return {Boolean} True if the operation has been canceled. */ isCanceled : function( ) {}, /**Throws {@link android.os.OperationCanceledException} if the operation has been canceled. @throws OperationCanceledException if the operation has been canceled. */ throwIfCanceled : function( ) {}, /**Cancels the operation and signals the cancellation listener. If the operation has not yet started, then it will be canceled as soon as it does. */ cancel : function( ) {}, /**Sets the cancellation listener to be called when canceled. This method is intended to be used by the recipient of a cancellation signal such as a database or a content provider to handle cancellation requests while performing a long-running operation. This method is not intended to be used by applications themselves. If {@link android.os.CancellationSignal#cancel} has already been called, then the provided listener is invoked immediately. This method is guaranteed that the listener will not be called after it has been removed. @param {Object {CancellationSignal.OnCancelListener}} listener The cancellation listener, or null to remove the current listener. */ setOnCancelListener : function( ) {}, /**Sets the remote transport. If {@link android.os.CancellationSignal#cancel} has already been called, then the provided remote transport is canceled immediately. This method is guaranteed that the remote transport will not be called after it has been removed. @param {Object {ICancellationSignal}} remote The remote transport, or null to remove. @hide */ setRemote : function( ) {}, /**Creates a transport that can be returned back to the caller of a Binder function and subsequently used to dispatch a cancellation signal. @return {Object {ICancellationSignal}} The new cancellation signal transport. @hide */ createTransport : function( ) {}, /**Given a locally created transport, returns its associated cancellation signal. @param {Object {ICancellationSignal}} transport The locally created transport, or null if none. @return {Object {android.os.CancellationSignal}} The associated cancellation signal, or null if none. @hide */ fromTransport : function( ) {}, };