Share via


WebView.JavaScriptEnabled Method

Definition

Sets whether JavaScript is enabled for the specified Android platform configuration.

public:
[System::Runtime::CompilerServices::Extension]
 static void JavaScriptEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::WebView ^> ^ config, bool value);
public static void JavaScriptEnabled(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.WebView> config, bool value);
static member JavaScriptEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.WebView> * bool -> unit
<Extension()>
Public Sub JavaScriptEnabled (config As IPlatformElementConfiguration(Of Android, WebView), value As Boolean)

Parameters

config
IPlatformElementConfiguration<Android,WebView>

The platform configuration to which this method applies.

value
Boolean

The boolean value indicating whether JavaScript should be enabled.

Applies to