Compartilhar via


WebView.SetIsJavaScriptAlertEnabled Method

Definition

Overloads

SetIsJavaScriptAlertEnabled(BindableObject, Boolean)

Sets a Boolean value that tells whether the web view allows JavaScript alerts.

SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)

Sets a Boolean value that tells whether the web view allows JavaScript alerts.

SetIsJavaScriptAlertEnabled(BindableObject, Boolean)

Sets a Boolean value that tells whether the web view allows JavaScript alerts.

public static void SetIsJavaScriptAlertEnabled (Xamarin.Forms.BindableObject element, bool value);
static member SetIsJavaScriptAlertEnabled : Xamarin.Forms.BindableObject * bool -> unit

Parameters

element
BindableObject

The web view element whose JavaScript alert permissions to set.

value
System.Boolean

to allow JavaScript alerts. Otherwise, false.

Applies to

SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)

Sets a Boolean value that tells whether the web view allows JavaScript alerts.

public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows,Xamarin.Forms.WebView> SetIsJavaScriptAlertEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows,Xamarin.Forms.WebView> config, bool value);
static member SetIsJavaScriptAlertEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows, Xamarin.Forms.WebView> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Windows, Xamarin.Forms.WebView>

Parameters

config
IPlatformElementConfiguration<Windows,WebView>

The platform configuration for the web view element whose JavaScript alert permissions to set.

value
System.Boolean

to allow JavaScript alerts. Otherwise, false.

Returns

A fluent object on which the developer may make further method calls.

Applies to