Language

WifiNetworkSuggestion.Builder.SetIsAppInteractionRequired(Boolean) Method

Definition

Specifies whether the app needs to log in to a captive portal to obtain Internet access.

[Android.Runtime.Register("setIsAppInteractionRequired", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=29)]
public Android.Net.Wifi.WifiNetworkSuggestion.Builder SetIsAppInteractionRequired(bool isAppInteractionRequired);
[<Android.Runtime.Register("setIsAppInteractionRequired", "(Z)Landroid/net/wifi/WifiNetworkSuggestion$Builder;", "", ApiSince=29)>]
member this.SetIsAppInteractionRequired : bool -> Android.Net.Wifi.WifiNetworkSuggestion.Builder

Parameters

isAppInteractionRequired
Boolean

true to indicate that app interaction is required, false otherwise.

Returns

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

Attributes

Remarks

Specifies whether the app needs to log in to a captive portal to obtain Internet access.

This will dictate if the directed broadcast WifiManager.ACTION_WIFI_NETWORK_SUGGESTION_POST_CONNECTION will be sent to the app after successfully connecting to the network. Use this for captive portal type networks where the app needs to authenticate the user before the device can access the network.

If not set, defaults to false (i.e no app interaction required).

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

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