Dtmf class
Dtmf enables playing DTMF tones crossplatform
Constructors
- Dtmf()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
playTone(
{required String digits, int durationMs = 160, double samplingRate = 500, double volume = 1, bool ignoreDtmfSystemSettings = false, bool forceMaxVolume = false}) → Future< bool?> -
Plays the DTMF Tones Associated with the
digits. Each tone is played for the durationdurationMsin milliseconds at the specified volume. If no volume is specified, the system default is used. Volume value should be between 0 and 1. Returns true if tone played successfully Set ignoreDtmfSystemSettings to true, if you want to play sound even when dtmf sounds are disable on the device (ex : on a tablet) Set forceMaxVolume to true if you want to increase max volume to the max volume of the phone, (and not just max volume of DTMF sounds). If you force max Volume to true, you can still control the volume with the volume atribute.