Share via


Call.PlayDtmfTone(Char) Method

Definition

Instructs this Call to play a dual-tone multi-frequency signaling (DTMF) tone.

[Android.Runtime.Register("playDtmfTone", "(C)V", "", ApiSince=23)]
public void PlayDtmfTone (char digit);
[<Android.Runtime.Register("playDtmfTone", "(C)V", "", ApiSince=23)>]
member this.PlayDtmfTone : char -> unit

Parameters

digit
Char

A character representing the DTMF digit for which to play the tone. This value must be one of '0' through '9', '*' or '#'.

Attributes

Remarks

Instructs this Call to play a dual-tone multi-frequency signaling (DTMF) tone.

Tones are both played locally for the user to hear and sent to the network to be relayed to the remote device.

You must ensure that any call to #playDtmfTone(char) is followed by a matching call to #stopDtmfTone() and that each tone is stopped before a new one is started. The play and stop commands are relayed to the underlying android.telecom.ConnectionService as executed; implementations may not correctly handle out of order commands.

Java documentation for android.telecom.Call.playDtmfTone(char).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to