Language

WifiNetworkSuggestion.Builder.SetIsInitialAutojoinEnabled(Boolean) Method

Definition

Specifies whether the suggestion is created with auto-join enabled or disabled.

[Android.Runtime.Register("setIsInitialAutojoinEnabled", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=30)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetIsInitialAutojoinEnabled(bool enabled);
[<Android.Runtime.Register("setIsInitialAutojoinEnabled", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=30)>]
member this.SetIsInitialAutojoinEnabled : bool -> Android.Net.Wifi.WifiNetworkSuggestion.Builder

Parameters

enabled
Boolean

true for initializing with auto-join enabled (the default), false to initializing with auto-join disabled.

Returns

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

Attributes

Remarks

Specifies whether the suggestion is created with auto-join enabled or disabled. The user may modify the auto-join configuration of a suggestion directly once the device associates to the network.

If auto-join is initialized as disabled the user may still be able to manually connect to the network. Therefore, disabling auto-join only makes sense if setCredentialSharedWithUser(boolean) is set to true (the default) which itself implies a secure (non-open) network.

If not set, defaults to true (i.e. auto-join is initialized as enabled).

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

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