IT. Expert System.

Android Reference

CancellationSignal


android.os

Class CancellationSignal



  • public final class CancellationSignal
    extends Object
    Provides the ability to cancel an operation in progress.
    • Constructor Detail

      • CancellationSignal

        public CancellationSignal()
        Creates a cancellation signal, initially not canceled.
    • Method Detail

      • isCanceled

        public boolean isCanceled()
        Returns true if the operation has been canceled.
        Returns:
        True if the operation has been canceled.
      • cancel

        public void cancel()
        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.
      • setOnCancelListener

        public void setOnCancelListener(CancellationSignal.OnCancelListener listener)
        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 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.
        Parameters:
        listener - The cancellation listener, or null to remove the current listener.
      • setRemote

        public void setRemote(ICancellationSignal remote)
        Sets the remote transport. If 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.
        Parameters:
        remote - The remote transport, or null to remove.
      • createTransport

        public static ICancellationSignal createTransport()
        Creates a transport that can be returned back to the caller of a Binder function and subsequently used to dispatch a cancellation signal.
        Returns:
        The new cancellation signal transport.
      • fromTransport

        public static CancellationSignal fromTransport(ICancellationSignal transport)
        Given a locally created transport, returns its associated cancellation signal.
        Parameters:
        transport - The locally created transport, or null if none.
        Returns:
        The associated cancellation signal, or null if none.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 581 / . Delta: 0.02727 с