ReceivedCancellationSignal class
A CancellationSignal that was created somewhere else and received by some client, typically AndroidContentProvider.
Can only be observed, and cannot be cancelled, because when such a signal is cancelled by the receiver, the creator cannot listen to this cancel, and probably doesn't even expect this.
Also, if receiver wants to end the operation, it should be able to just return (or throw) explicitly, instead of cancelling the signal, making this operation essentially useless.
- Inheritance
-
- Object
- Interoperable
- ReceivedCancellationSignal
- Implementers
Constructors
- ReceivedCancellationSignal.fromId(String _id)
- Creates cancellation signal from an existing ID.
Properties
Methods
-
dispose(
) → void - Disposes the cancellation signal.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCancelListener(
VoidCallback? listener) → void -
Sets the cancellation
listener
to be called when canceled. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited