Taal

WifiNetworkSuggestion.Builder.SetMacRandomizationSetting(Int32) Method

Definition

Specifies the MAC randomization method.

[Android.Runtime.Register("setMacRandomizationSetting", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=31)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetMacRandomizationSetting(int macRandomizationSetting);
[<Android.Runtime.Register("setMacRandomizationSetting", "(I)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=31)>]
member this.SetMacRandomizationSetting : int -> Android.Net.Wifi.WifiNetworkSuggestion.Builder

Parameters

macRandomizationSetting
Int32
  • one of RANDOMIZATION_* values. Value is one of the following: WifiNetworkSuggestion.RANDOMIZATION_PERSISTENT; WifiNetworkSuggestion.RANDOMIZATION_NON_PERSISTENT

Returns

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

Attributes

Remarks

Specifies the MAC randomization method.

Suggested networks will never use the device (factory) MAC address to associate to the network - instead they use a locally generated random MAC address. This method controls the strategy for generating the random MAC address. If not set, defaults to WifiNetworkSuggestion.RANDOMIZATION_PERSISTENT.

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

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