Partager via


WifiConfiguration.MacRandomizationSetting Property

Definition

Get the MAC randomization setting for this network. -or- Set the MAC randomization setting for this network.

public virtual int MacRandomizationSetting { [Android.Runtime.Register("getMacRandomizationSetting", "()I", "GetGetMacRandomizationSettingHandler", ApiSince=33)] get; [Android.Runtime.Register("setMacRandomizationSetting", "(I)V", "GetSetMacRandomizationSetting_IHandler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getMacRandomizationSetting", "()I", "GetGetMacRandomizationSettingHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setMacRandomizationSetting", "(I)V", "GetSetMacRandomizationSetting_IHandler", ApiSince=33)>]
member this.MacRandomizationSetting : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Get the MAC randomization setting for this network.

Java documentation for android.net.wifi.WifiConfiguration.getMacRandomizationSetting().

Property setter documentation:

Set the MAC randomization setting for this network.

Caller must satify one of the following conditions:

<ul> <li>Have android.Manifest.permission#NETWORK_SETTINGS permission.</li> <li>Have android.Manifest.permission#NETWORK_SETUP_WIZARD permission.</li> <li>Be in Demo Mode.</li> <li>Be the creator adding or updating a passpoint network.</li> <li>Be an admin updating their own network.</li> </ul>

Java documentation for android.net.wifi.WifiConfiguration.setMacRandomizationSetting(int).

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