FCXPlayDTMFCallAction class
Dart representation of CXPlayDTMFCallAction from iOS CallKit Framework.
Whenever digits are transmitted during a call, whether from a user interacting with a number pad or following a hard or soft pause, the provider calls FCXProvider.performPlayDTMFCallAction.
Handler of the FCXProvider.performPlayDTMFCallAction callback calls the FCXAction.fulfill method to indicate that the action was successfully performed.
The provider calls FCXProvider.performPlayDTMFCallAction for successive actions only after the current action is fulfilled.
When interacting with the number pad, each entered digit constitutes its own action.
Digits following a hard or soft pause, however, are passed to FCXProvider.performPlayDTMFCallAction as a single string of digits.
For example, if a user taps the 4 button on the number pad, followed by the 2 button, the FCXProvider.performPlayDTMFCallAction called for the digit 4 and waits for the action to be fulfilled; after the action is fulfilled, the FCXProvider.performPlayDTMFCallAction called for the digit 2.
CallKit automatically plays the corresponding DTMF frequencies for any digits transmitted over a call.
The app is responsible for managing the timing and handling of digits as part of fulfilling the action.
- Inheritance
-
- Object
- FCXAction
- FCXCallAction
- FCXPlayDTMFCallAction
Constructors
- FCXPlayDTMFCallAction(String callUuid, String digits, FCXPlayDTMFCallActionType type)
- Initializes a new action for a call identified by a given uuid, as well as a specified type and sequence of digits.
Properties
- callUuid → String
-
The unique identifier of the call.
finalinherited
- complete → bool
-
A bool value that indicates whether
the action has been performed by the provider.
no setterinherited
- digits ↔ String
-
The string representation of the digits
that should be played as DTMF tones
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutDate → DateTime
-
The time after which the action cannot be completed.
no setterinherited
- type ↔ FCXPlayDTMFCallActionType
-
The type of the call action.
getter/setter pair
- uuid → String
-
The unique identifier for the action.
no setterinherited
Methods
-
fail(
) → Future< void> -
Reports the failed execution of the action.
inherited
-
fulfill(
) → Future< void> -
Reports the successful execution of the action.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited