setFeatureEnabled

fun setFeatureEnabled(feature: Feature, enabled: Boolean)

Enables or disables a feature.

The current status of the feature can be determined with id@webkit_settings_get_feature_enabled. To reset a feature to its initial status, pass the value returned by id@webkit_feature_get_default_value as the @enabled parameter.

Since

2.42

Parameters

feature

the feature to toggle.

enabled

whether the feature will be enabled.