ToneGenerator.StartTone Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| StartTone(Tone) |
Cette méthode démarre la lecture d’un ton du type spécifié. |
| StartTone(Tone, Int32) |
Cette méthode démarre la lecture d’un ton du type spécifié pendant la durée spécifiée. |
StartTone(Tone)
Cette méthode démarre la lecture d’un ton du type spécifié.
[Android.Runtime.Register("startTone", "(I)Z", "GetStartTone_IHandler")]
public virtual bool StartTone(Android.Media.Tone toneType);
[<Android.Runtime.Register("startTone", "(I)Z", "GetStartTone_IHandler")>]
abstract member StartTone : Android.Media.Tone -> bool
override this.StartTone : Android.Media.Tone -> bool
Paramètres
- toneType
- Tone
Le type de ton généré à partir de la liste suivante : <ul><li>#TONE_DTMF_0<li>li#TONE_DTMF_1<>#TONE_DTMF_2<>#TONE_DTMF_3<>#TONE_DTMF_4<>#TONE_DTMF_5<>#TONE_DTMF_6<>#TONE_DTMF_7<>#TONE_DTMF_8<>#TONE_DTMF_9<>#TONE_DTMF_A<>#TONE_DTMF_B<>#TONE_DTMF_C<>#TONE_DTMF_D<>#TONE_SUP_DIAL<>#TONE_SUP_BUSY<>#TONE_SUP_CONGESTION<>#TONE_SUP_RADIO_ACK<>#TONE_SUP_RADIO_NOTAVAIL<>#TONE_SUP_ERROR<li>#TONE_SUP_CALL_WAITING<>#TONE_SUP_RINGTONE<>#TONE_PROP_BEEP<>#TONE_PROP_ACK<>#TONE_PROP_NACK<>#TONE_PROP_PROMPT<>#TONE_PROP_BEEP2<>#TONE_SUP_INTERCEPT<>#TONE_SUP_INTERCEPT_ABBREV<>#TONE_SUP_CONGESTION_ABBREV<>#TONE_SUP_CONFIRM<>#TONE_SUP_PIP<>#TONE_CDMA_DIAL_TONE_LITE<>#TONE_CDMA_NETWORK_USA_RINGBACK<>#TONE_CDMA_INTERCEPT<>#TONE_CDMA_ABBR_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_HIGH_PBX_S_X4<>#TONE_CDMA_MED_PBX_S_X4<>#TONE_CDMA_LOW_PBX_S_X4<>#TONE_CDMA_ALERT_NETWORK_LITE<>#TONE_CDMA_ALERT_AUTOREDIAL_LITE<>#TONE_CDMA_ONE_MIN_BEEP<>#TONE_CDMA_KEYPAD_VOLUME_KEY_LITE<>#TONE_CDMA_PRESSHOLDKEY_LITE<>#TONE_CDMA_ALERT_INCALL_LITE<>#TONE_CDMA_EMERGENCY_RINGBACK<>#TONE_CDMA_ALERT_CALL_GUARD<>#TONE_CDMA_SOFT_ERROR_LITE<>#TONE_CDMA_CALLDROP_LITE<>#TONE_CDMA_NETWORK_BUSY_ONE_SHOT<>#TONE_CDMA_ABBR_ALERT<>#TONE_CDMA_SIGNAL_OFF<li>
Retours
Indique si la demande de tonalité native réussit. Ce résultat n’est pas une notification indiquant que la lecture a terminé.
- Attributs
Remarques
Cette méthode démarre la lecture d’un ton du type spécifié. une seule tonalité peut jouer à la fois : si un ton est lu pendant que cette méthode est appelée, ce ton est arrêté et remplacé par celui demandé.
Java documentation pour android.media.ToneGenerator.startTone(int).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.
Voir aussi
- <xref:Android.Media.ToneGenerator(Android.Media.Stream%2c+Android.Media.Volume)>
S’applique à
StartTone(Tone, Int32)
Cette méthode démarre la lecture d’un ton du type spécifié pendant la durée spécifiée.
[Android.Runtime.Register("startTone", "(II)Z", "GetStartTone_IIHandler")]
public virtual bool StartTone(Android.Media.Tone toneType, int durationMs);
[<Android.Runtime.Register("startTone", "(II)Z", "GetStartTone_IIHandler")>]
abstract member StartTone : Android.Media.Tone * int -> bool
override this.StartTone : Android.Media.Tone * int -> bool
Paramètres
- toneType
- Tone
Type de ton généré
- durationMs
- Int32
Durée du ton en millisecondes. Si la tonalité est limitée dans le temps par définition, la durée réelle est la durée minimale des durées et la durée de tonalité définie. La définition de durationMs sur -1 équivaut à appeler #startTone(int).
Retours
Indique si la demande de tonalité native réussit, plutôt que l’achèvement de la durée de tonalité demandée.
- Attributs
Remarques
Cette méthode démarre la lecture d’un ton du type spécifié pendant la durée spécifiée.
Java documentation pour android.media.ToneGenerator.startTone(int, int).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.