Language

WifiNetworkSuggestion.Builder.SetPriority(Int32) Method

Definition

Specify the priority of this network among other network suggestions provided by the same app and within the same priority group, see setPriorityGroup(int).

[Android.Runtime.Register("setPriority", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=29)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetPriority(int priority);
[<Android.Runtime.Register("setPriority", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=29)>]
member this.SetPriority : int -> Android.Net.Wifi.WifiNetworkSuggestion.Builder

Parameters

priority
Int32

Integer number representing the priority among suggestions by the app. Value is 0 or greater

Returns

Instance of Builder to enable chaining of the builder method. This value cannot be null.

Attributes

Remarks

Specify the priority of this network among other network suggestions provided by the same app and within the same priority group, see setPriorityGroup(int). Priorities have no impact on suggestions by other apps or suggestions from the same app using a different priority group. The higher the number, the higher the priority (i.e value of 0 = lowest priority). If not set, defaults to a lower priority than any assigned priority.

Android reference for android.net.wifi.WifiNetworkSuggestion.Builder.setPriority.

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.

Applies to