Share via


PhoneCall Class

Definition

Represents a phone call.

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
Inheritance
Object Platform::Object IInspectable PhoneCall
Attributes

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v6.0)
App capabilities
phoneCall

Properties

AudioDevice

Gets the phone call audio device.

CallId

Gets the phone call identifier (or call identifier).

IsMuted

Gets the muted status of the phone call.

Status

Gets the status of the phone call.

Methods

AcceptIncoming()

Answers an incoming phone call.

AcceptIncomingAsync()

Asynchronously answers an incoming phone call.

ChangeAudioDevice(PhoneCallAudioDevice)

Sets a hands-free (HF) phone call audio device.

ChangeAudioDeviceAsync(PhoneCallAudioDevice)

Asynchronously sets a hands-free (HF) phone call audio device.

End()

Ends the phone call.

EndAsync()

Asynchronously ends the phone call.

GetFromId(String)

A static factory method that creates a new PhoneCall object for the specified call identifier.

GetPhoneCallInfo()

Retrieves an object representing a phone call, and its properties.

GetPhoneCallInfoAsync()

Asynchronously retrieves an object representing a phone call, and its properties.

Hold()

Places an active phone call on hold.

HoldAsync()

Asynchronously places an active phone call on hold.

Mute()

Mutes an active phone call.

MuteAsync()

Asynchronously mutes an active phone call.

RejectIncoming()

Rejects/declines an incoming phone call.

RejectIncomingAsync()

Asynchronously rejects/declines an incoming phone call.

ResumeFromHold()

Activates a phone call previously placed on hold.

ResumeFromHoldAsync()

Asynchronously activates a phone call previously placed on hold.

SendDtmfKey(DtmfKey, DtmfToneAudioPlayback)

Sends the specified dual tone multi-frequency (DTMF) character to the phone call. Only short tones (burst) are supported.

SendDtmfKeyAsync(DtmfKey, DtmfToneAudioPlayback)

Asynchronously sends the specified dual tone multi-frequency (DTMF) character to the phone call. Only short tones (burst) are supported.

Unmute()

Unmutes a previously muted phone call.

UnmuteAsync()

Asynchronously unmutes a previously muted phone call.

Events

AudioDeviceChanged

An event that's raised when the value of PhoneCall.AudioDevice changes.

IsMutedChanged

An event that's raised when the value of PhoneCall.IsMuted changes.

StatusChanged

An event that's raised when the value of PhoneCall.Status changes.

Applies to