PhoneCall Classe

Définition

Représente un appel téléphonique.

public ref class PhoneCall sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneCall final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PhoneCall
Public NotInheritable Class PhoneCall
Héritage
Object Platform::Object IInspectable PhoneCall
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 2104 (introduit dans 10.0.20348.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduit dans v6.0)
Fonctionnalités de l’application
phoneCall

Propriétés

AudioDevice

Obtient le périphérique audio d’appel téléphonique.

CallId

Obtient l’identificateur d’appel (ou identificateur d’appel).

IsMuted

Obtient le status désactivé de l’appel téléphonique.

Status

Obtient le status de l’appel téléphonique.

Méthodes

AcceptIncoming()

Répond à un appel entrant.

AcceptIncomingAsync()

Répond de manière asynchrone à un appel téléphonique entrant.

ChangeAudioDevice(PhoneCallAudioDevice)

Définit un appareil audio d’appel téléphonique mains libres (HF).

ChangeAudioDeviceAsync(PhoneCallAudioDevice)

Définit de manière asynchrone un appareil audio d’appel téléphonique mains libres (HF).

End()

Termine l’appel téléphonique.

EndAsync()

Met fin de façon asynchrone à l’appel téléphonique.

GetFromId(String)

Méthode de fabrique statique qui crée un objet PhoneCall pour l’identificateur d’appel spécifié.

GetPhoneCallInfo()

Récupère un objet représentant un appel téléphonique et ses propriétés.

GetPhoneCallInfoAsync()

Récupère de manière asynchrone un objet représentant un appel téléphonique et ses propriétés.

Hold()

Places un appel téléphonique actif en attente.

HoldAsync()

Place de façon asynchrone un appel téléphonique actif en attente.

Mute()

Désactive un appel téléphonique actif.

MuteAsync()

Désactive de manière asynchrone un appel téléphonique actif.

RejectIncoming()

Rejette/refuse un appel téléphonique entrant.

RejectIncomingAsync()

Rejette/refuse de manière asynchrone un appel téléphonique entrant.

ResumeFromHold()

Active un appel téléphonique précédemment mis en attente.

ResumeFromHoldAsync()

Active de manière asynchrone un appel téléphonique précédemment mis en attente.

SendDtmfKey(DtmfKey, DtmfToneAudioPlayback)

Envoie le caractère multi-fréquence double ton (DTMF) spécifié à l’appel téléphonique. Seules les tons courts (rafale) sont pris en charge.

SendDtmfKeyAsync(DtmfKey, DtmfToneAudioPlayback)

Envoie de manière asynchrone le caractère multifréquence double ton (DTMF) spécifié à l’appel téléphonique. Seules les tons courts (rafale) sont pris en charge.

Unmute()

Annule le son d’un appel téléphonique précédemment désactivé.

UnmuteAsync()

Désactive de manière asynchrone un appel téléphonique précédemment désactivé.

Événements

AudioDeviceChanged

Événement déclenché lorsque la valeur de PhoneCall.AudioDevice change.

IsMutedChanged

Événement déclenché lorsque la valeur de PhoneCall.IsMuted change .

StatusChanged

Événement déclenché lorsque la valeur de PhoneCall.Status change.

S’applique à