WebView.SetJavaScriptEnabled 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.
Overloads
| SetJavaScriptEnabled(IPlatformElementConfiguration<Android,WebView>, Boolean) |
Sets whether JavaScript is enabled for the specified Android platform configuration and returns the configuration. |
| SetJavaScriptEnabled(WebView, Boolean) |
Sets the value of the JavaScriptEnabled property for the specified WebView. |
SetJavaScriptEnabled(IPlatformElementConfiguration<Android,WebView>, Boolean)
- Source:
- WebView.cs
Sets whether JavaScript is enabled for the specified Android platform configuration and returns the configuration.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::WebView ^> ^ SetJavaScriptEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::WebView ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.WebView> SetJavaScriptEnabled(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.WebView> config, bool value);
static member SetJavaScriptEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.WebView> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.WebView>
<Extension()>
Public Function SetJavaScriptEnabled (config As IPlatformElementConfiguration(Of Android, WebView), value As Boolean) As IPlatformElementConfiguration(Of Android, WebView)
Parameters
The platform configuration to which this method applies.
- value
- Boolean
The boolean value indicating whether JavaScript should be enabled.
Returns
The platform configuration to support fluent API.
Applies to
SetJavaScriptEnabled(WebView, Boolean)
- Source:
- WebView.cs
Sets the value of the JavaScriptEnabled property for the specified WebView.
public:
static void SetJavaScriptEnabled(Microsoft::Maui::Controls::WebView ^ element, bool value);
public static void SetJavaScriptEnabled(Microsoft.Maui.Controls.WebView element, bool value);
static member SetJavaScriptEnabled : Microsoft.Maui.Controls.WebView * bool -> unit
Public Sub SetJavaScriptEnabled (element As WebView, value As Boolean)
Parameters
- element
- WebView
The WebView on which to set the property value.
- value
- Boolean
The boolean value indicating whether JavaScript should be enabled.