AccessoryManager.AcceptPhoneCall 方法

定义

重载

AcceptPhoneCall(UInt32)

接受传入电话呼叫。

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

接受传入电话呼叫。

AcceptPhoneCall(UInt32)

接受传入电话呼叫。

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)

参数

phoneCallId
UInt32

unsigned int

uint32_t

传入电话呼叫的标识符。

属性

Windows 要求

应用功能
accessoryManager

注解

调用此 API 需要在应用程序清单中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

另请参阅

适用于

AcceptPhoneCall(UInt32, PhoneCallAudioEndpoint)

接受传入电话呼叫。

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)

参数

phoneCallId
UInt32

unsigned int

uint32_t

传入呼叫的标识符

endPoint
PhoneCallAudioEndpoint

传入呼叫的音频终结点

属性

Windows 要求

应用功能
accessoryManager

注解

调用此 API 需要在应用程序清单中指定 ID_CAP_SMSID_CAP_SMS_COMPANION 功能。

另请参阅

适用于