WifiNetworkSuggestion.Builder.SetPriorityGroup(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Suggested networks are considered as part of a pool of all suggested networks and other networks (e.g. saved networks) - one of which will be selected.
[Android.Runtime.Register("setPriorityGroup", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=31)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetPriorityGroup(int priorityGroup);
[<Android.Runtime.Register("setPriorityGroup", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=31)>]
member this.SetPriorityGroup : int -> Android.Net.Wifi.WifiNetworkSuggestion.Builder
Parameters
- priorityGroup
- Int32
priority group id, if not set default is 0. Value is 0 or greater
Returns
Instance of Builder to enable chaining of the builder method. This value cannot be null.
- Attributes
Remarks
Suggested networks are considered as part of a pool of all suggested networks and other networks (e.g. saved networks) - one of which will be selected.
Any app can suggest any number of networks.
Priority: only the highest priority (0 being the lowest) currently visible suggested network or networks (multiple suggested networks may have the same priority) are added to the network selection pool.
However, this restricts a suggesting app to have a single group of networks which can be prioritized. In some circumstances multiple groups are useful: for instance, suggesting networks for 2 different SIMs - each of which may have its own priority order.
Priority group: creates a separate priority group. Only the highest priority, currently visible suggested network or networks, within each priority group are included in the network selection pool.
Specify an arbitrary integer only used as the priority group. Use with setPriority(int).
Android reference for android.net.wifi.WifiNetworkSuggestion.Builder.setPriorityGroup.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.