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() |
開啟可讓用戶選取呼叫來源應用程式的介面。 |