AccessoryManager.AcceptPhoneCall 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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_SMS 和 ID_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_SMS 和 ID_CAP_SMS_COMPANION 功能。
另请参阅
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈