MobileBroadbandRadioStateChangeTrigger 类

定义

表示指示移动宽带无线电状态何时更改的触发器。 例如,当移动设备转换到飞行模式或从飞行模式转换时,此触发器将激活。

此功能仅适用于移动运营商应用和 UWP 应用,前提是移动网络运营商具有特权访问权限。 有关详细信息,请参阅 移动宽带

public ref class MobileBroadbandRadioStateChangeTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MobileBroadbandRadioStateChangeTrigger final : IBackgroundTrigger
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class MobileBroadbandRadioStateChangeTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MobileBroadbandRadioStateChangeTrigger : IBackgroundTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MobileBroadbandRadioStateChangeTrigger : IBackgroundTrigger
function MobileBroadbandRadioStateChangeTrigger()
Public NotInheritable Class MobileBroadbandRadioStateChangeTrigger
Implements IBackgroundTrigger
继承
Object Platform::Object IInspectable MobileBroadbandRadioStateChangeTrigger
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

激活此触发器时,后台任务的 IBackgroundTaskInstance.TriggerDetailsMobileBroadbandRadioStateChangeTriggerDetails 实例。

构造函数

MobileBroadbandRadioStateChangeTrigger()

构造 MobileBroadbandRadioStateChangeTrigger 对象。

此功能仅适用于移动运营商应用和 UWP 应用,前提是移动网络运营商具有特权访问权限。 有关详细信息,请参阅 移动宽带

适用于

另请参阅