FeatureList

class FeatureList(pointer: <Error class: unknown class><<Error class: unknown class>>)

Contains a set of toggle-able web engine features.

The list supports passing around a set of struct@Feature objects and iterating over them:

g_autoptr(WebKitFeatureList) list = webkit_settings_get_experimental_features();
for (gsize i = 0; i < webkit_feature_list_get_length(list): i++) {
WebKitFeature *feature = webkit_feature_list_get(list, i);
// Do something with "feature".
}

Lists of features can be obtained with func@Settings.get_experimental_features, func@Settings.get_development_features, and func@Settings.get_all_features.

Since

2.42

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitFeatureListPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun get(index: <Error class: unknown class>): Feature

Gets a feature given its index.

Link copied to clipboard
fun getLength(): <Error class: unknown class>

Gets the number of elements in the feature list.

Link copied to clipboard

Atomically acquires a reference on the given @feature_list.

Link copied to clipboard
fun unref()

Atomically releases a reference on the given @feature_list.