CallControl Class

Definition

Represents the properties, commands and events for handling calls on a telephony related device.

public ref class CallControl sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Devices.CallControlContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CallControl final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Devices.CallControlContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CallControl
Public NotInheritable Class CallControl
Inheritance
Object Platform::Object IInspectable CallControl
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Media.Devices.CallControlContract (introduced in v1.0)

Remarks

This class provides access to events that can be monitored and used for modifying the behavior of your telephony-aware app. For more information, see How to manage calls on the default Bluetooth communications device.

Properties

HasRinger

Indicates whether the telephony device has a built-in ringer.

Methods

EndCall(UInt64)

Ends the specified call.

FromId(String)

Returns a CallControl class that represents the audio communications device specified by the DeviceInformation ID being passed.

GetDefault()

Returns a CallControl class that represents the default audio communications device.

IndicateActiveCall(UInt64)

Indicates that the specified call is now active.

IndicateNewIncomingCall(Boolean, String)

Informs the device that there is an incoming call.

IndicateNewOutgoingCall()

Updates device indicators to indicate an outgoing call.

Events

AnswerRequested

Occurs when the device receives a request to answer a call.

AudioTransferRequested

Occurs when the device receives a request for an audio transfer.

DialRequested

Occurs when a number is dialed from the device.

HangUpRequested

Occurs when the device receives a request to hang up a call.

KeypadPressed

Occurs when a keypad button on the device has been pressed.

RedialRequested

Occurs when the device receives a request to redial.

Applies to

See also