Delen via


WiFiOnDemandHotspotCellularBars Enum

Definition

Note

Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Important

This API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more info, see Changes to API behavior for Wi-Fi access and location.

Defines constants that specify the number of cellular bars (out of five) of a hotspot 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.

public enum class WiFiOnDemandHotspotCellularBars
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class WiFiOnDemandHotspotCellularBars
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum WiFiOnDemandHotspotCellularBars
var value = Windows.Devices.WiFi.WiFiOnDemandHotspotCellularBars.zeroBars
Public Enum WiFiOnDemandHotspotCellularBars
Inheritance
WiFiOnDemandHotspotCellularBars
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)
App capabilities
onDemandHotspotControl

Fields

Name Value Description
ZeroBars 0

Specifies that the hotspot network has zero cellular bars.

OneBar 1

Specifies that the hotspot network has one cellular bar.

TwoBars 2

Specifies that the hotspot network has two cellular bars.

ThreeBars 3

Specifies that the hotspot network has three cellular bars.

FourBars 4

Specifies that the hotspot network has four cellular bars.

FiveBars 5

Specifies that the hotspot network has five cellular bars.

Applies to