Share via


AccessoryManager.AcceptPhoneCall Method

Definition

Overloads

AcceptPhoneCall(UInt32)

Accepts an incoming phone call.

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

Accepts an incoming phone call.

AcceptPhoneCall(UInt32)

Accepts an incoming phone call.

public:
 static void AcceptPhoneCall(unsigned int phoneCallId);
/// [Windows.Foundation.Metadata.Overload("AcceptPhoneCall")]
 static void AcceptPhoneCall(uint32_t const& phoneCallId);
[Windows.Foundation.Metadata.Overload("AcceptPhoneCall")]
public static void AcceptPhoneCall(uint phoneCallId);
function acceptPhoneCall(phoneCallId)
Public Shared Sub AcceptPhoneCall (phoneCallId As UInteger)

Parameters

phoneCallId
UInt32

unsigned int

uint32_t

The identifier of the incoming phone call.

Attributes

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

See also

Applies to

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

Accepts an incoming phone call.

public:
 static void AcceptPhoneCall(unsigned int phoneCallId, PhoneCallAudioEndpoint endPoint);
/// [Windows.Foundation.Metadata.Overload("AcceptPhoneCallOnEndpoint")]
 static void AcceptPhoneCall(uint32_t const& phoneCallId, PhoneCallAudioEndpoint const& endPoint);
[Windows.Foundation.Metadata.Overload("AcceptPhoneCallOnEndpoint")]
public static void AcceptPhoneCall(uint phoneCallId, PhoneCallAudioEndpoint endPoint);
function acceptPhoneCall(phoneCallId, endPoint)
Public Shared Sub AcceptPhoneCall (phoneCallId As UInteger, endPoint As PhoneCallAudioEndpoint)

Parameters

phoneCallId
UInt32

unsigned int

uint32_t

The identifier of the incoming call

endPoint
PhoneCallAudioEndpoint

The audio end point of the incoming call

Attributes

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

See also

Applies to