PhoneCallOriginManager 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class PhoneCallOriginManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneCallOriginManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
class PhoneCallOriginManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class PhoneCallOriginManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
public static class PhoneCallOriginManager
Public Class PhoneCallOriginManager
- 继承
- 属性
Windows 要求
设备系列 |
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
|
API contract |
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v1.0 中引入)
|
应用功能 |
phoneCallHistory
phoneCallHistorySystem
|
注解
版本历史记录
Windows 版本 | SDK 版本 | 增值 |
---|---|---|
1709 | 16299 | RequestSetAsActiveCallOriginAppAsync |
1903 | 18362 | IsSupported |
属性
IsCurrentAppActiveCallOriginApp |
检查当前应用程序是否设置为默认调用源应用程序。 |
IsSupported |
如果支持 PhoneCallOriginManager API,则返回 true;如果不支持,则返回 false。 有关异常,请参阅备注。 |
方法
RequestSetAsActiveCallOriginAppAsync() |
调用对话框,将当前应用设置为默认的手机源应用。 |
SetCallOrigin(Guid, PhoneCallOrigin) |
设置电话呼叫传入时的呼叫源。 |
ShowPhoneCallOriginSettingsUI() |
打开使用户能够选择呼叫源应用程序的界面。 |