FCXAction class

Dart representation of CXAction from iOS CallKit Framework.

An abstract class that declares a programmatic interface for objects that represent a telephony action.

Each instance of FCXAction is uniquely identified by a uuid, which is generated on initialization.

An action also tracks whether it has been completed or not. To perform one or more actions, you pass the transaction to an instance of FCXCallController using the FCXCallController.requestTransactionWithAction method.

After each action is performed by the telephony provider, the provider’s callback handler calls either the FCXAction.fulfill method, indicating that the action was successfully performed, or the FCXAction.fail method, to indicate that an error occurred; both of these methods set the FCXAction.complete of the action to true.

Implementers

Constructors

FCXAction()
Initializes a new telephony action.

Properties

complete bool
A bool value that indicates whether the action has been performed by the provider.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeoutDate DateTime
The time after which the action cannot be completed.
read-only
uuid String
The unique identifier for the action.
read-only

Methods

fail() Future<void>
Reports the failed execution of the action.
fulfill() Future<void>
Reports the successful execution of the action.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited