FeatureList#

Added in version 2.42.

class FeatureList(*args, **kwargs)#

Contains a set of toggle-able web engine features.

The list supports passing around a set of 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 get_experimental_features, get_development_features, and get_all_features.

Methods#

class FeatureList
get(index: int) Feature#

Gets a feature given its index.

Added in version 2.42.

Parameters:

index – index of the feature

get_length() int#

Gets the number of elements in the feature list.