AdBlockerWebviewControllerImpl class
Implementation for AdBlockerWebviewController
- Implemented types
Constructors
Properties
-
allowedDomains
→ Set<
String> -
Returns the set of allowed (whitelisted) domains
no setteroverride
-
allResourceRules
→ UnmodifiableListView<
ResourceRule> -
Returns the all resource rules list.
This list items are populated after calling the initialize method
no setteroverride
-
blockedDomains
→ Set<
String> -
Returns the set of blocked domains (custom block list)
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Returns whether the controller has been initialized
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statistics → BlockingStatistics
-
Returns the blocking statistics
no setteroverride
Methods
-
addAllowedDomain(
String domain) → void -
Adds a domain to the whitelist
override
-
addBlockedDomain(
String domain) → void -
Adds a domain to the custom block list
override
-
canGoBack(
) → Future< bool> -
Returns decision of if the webview can go back
override
-
canGoForward(
) → Future< bool> -
Returns decision of if he webview can go forward
override
-
clearCache(
) → Future< void> -
override
-
dispose(
) → Future< void> - Disposes the controller and releases resources
-
getCssRulesForWebsite(
String url) → List< String> -
Returns the css rules for the given url
override
-
getTitle(
) → Future< String?> -
override
-
goBack(
) → Future< void> -
Navigates webview to previous page
override
-
goForward(
) → Future< void> -
Navigates the webview to forward page
override
-
initialize(
FilterConfig filterConfig) → Future< void> -
Initializes the controller with the given filter configuration
override
-
isAllowedDomain(
String urlOrDomain) → bool -
Checks if a domain is in the whitelist
override
-
isBlockedDomain(
String urlOrDomain) → bool -
Checks if a domain is in the custom block list
override
-
loadData(
String data, {String? baseUrl}) → Future< void> -
override
-
loadUrl(
String url) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< void> -
Reloads the current page
override
-
removeAllowedDomain(
String domain) → bool -
Removes a domain from the whitelist
override
-
removeBlockedDomain(
String domain) → bool -
Removes a domain from the custom block list
override
-
resetStatistics(
) → void -
Resets the blocking statistics
override
-
runScript(
String script) → Future< void> -
Runs the given script
override
-
setInternalController(
WebViewController controller) → void - Sets WebViewController to be used in future Typically not to be used by third parties
-
shouldBlockResource(
String url) → bool -
Returns decision of if the resource should be blocked
override
-
stopLoading(
) → Future< void> -
Stops loading the current page
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited