Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.49 KB

wifiondemandhotspotupdatemetadatatrigger.md

File metadata and controls

31 lines (20 loc) · 1.49 KB
-api-id -api-type
T:Windows.ApplicationModel.Background.WiFiOnDemandHotspotUpdateMetadataTrigger
winrt class

Windows.ApplicationModel.Background.WiFiOnDemandHotspotUpdateMetadataTrigger

-description

Represents an event that causes a background task to run when the user opens the operating system (OS) Wi-Fi network list, as if to connect to a new Wi-Fi network.

Note

If you want to use this API in a UWP app, and publish your app to the Microsoft Store, then you'll need to request special approval to use the custom capability Microsoft.onDemandHotspotControl_8wekyb3d8bbwe (the On-Demand Network capability). For more info, see Custom capabilities.

The On-Demand Network capability will be made available only to app developers building end-to-end Wi-Fi hotspot scenarios between a tethering-capable hardware device and a Windows PC.

-remarks

You should use this as an indication to update the operating system (OS) metadata on the injected network, such as reporting to the OS that the on-demand hotspot should be hidden because the phone is no longer in physical proximity to the Windows device. However, the app is free to report this information at any time, such as when the user unlocks their device.

-see-also

-examples

-capabilities

onDemandHotspotControl