ContentBlockerActionType class

Class that represents the kind of action that can be used with a ContentBlockerTrigger.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() String?
Gets String native value if supported by the current platform, otherwise null.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

BLOCK ContentBlockerActionType
Stops loading of the resource. If the resource was cached, the cache is ignored.
final
BLOCK_COOKIES ContentBlockerActionType
Strips cookies from the header before sending it to the server. This only blocks cookies otherwise acceptable to WebView's privacy policy. Combining with IGNORE_PREVIOUS_RULES doesn't override the browser’s privacy settings.
final
CSS_DISPLAY_NONE ContentBlockerActionType
Hides elements of the page based on a CSS selector. A selector field contains the selector list. Any matching element has its display property set to none, which hides it.
final
IGNORE_PREVIOUS_RULES ContentBlockerActionType
Ignores previously triggered actions.
final
MAKE_HTTPS ContentBlockerActionType
Changes a URL from http to https. URLs with a specified (nondefault) port and links using other protocols are unaffected.
final
values Set<ContentBlockerActionType>
Set of all values of ContentBlockerActionType.
final

Static Methods

asNameMap() Map<String, ContentBlockerActionType>
Creates a map from the names of ContentBlockerActionType values to the values.
byName(String? name) ContentBlockerActionType?
Gets a possible ContentBlockerActionType instance value with name name.
fromNativeValue(String? value) ContentBlockerActionType?
Gets a possible ContentBlockerActionType instance from a native value.
fromValue(String? value) ContentBlockerActionType?
Gets a possible ContentBlockerActionType instance from String value.