WifiNetworkSuggestion.Builder.SetCredentialSharedWithUser(Boolean) 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.
Specifies whether the network credentials provided with this suggestion can be used by the user to explicitly (manually) connect to this network.
[Android.Runtime.Register("setCredentialSharedWithUser", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=30)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetCredentialSharedWithUser(bool isShared);
[<Android.Runtime.Register("setCredentialSharedWithUser", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=30)>]
member this.SetCredentialSharedWithUser : bool -> Android.Net.Wifi.WifiNetworkSuggestion.Builder
Parameters
- isShared
- Boolean
true to indicate that the credentials may be used by the user to manually connect to the network, false otherwise.
Returns
Instance of Builder to enable chaining of the builder method. This value cannot be null.
- Attributes
Remarks
Specifies whether the network credentials provided with this suggestion can be used by the user to explicitly (manually) connect to this network. If true this network will appear in the Wi-Fi Picker (in Settings) and the user will be able to select and connect to it with the provided credentials. If false, the user will need to enter network credentials and the resulting configuration will become a user saved network.
Note: Only valid for secure (non-open) networks; If not set, defaults to true (i.e. allow user to manually connect) for secure networks and false for open networks.
Android reference for android.net.wifi.WifiNetworkSuggestion.Builder.setCredentialSharedWithUser.
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.