setBlockedURLs

suspend fun setBlockedURLs(args: Network.SetBlockedURLsParameter, mode: CommandMode = CommandMode.DEFAULT)

Blocks URLs from loading.


suspend fun setBlockedURLs(urlPatterns: List<Network.BlockPattern>? = null, urls: List<String>? = null)

Blocks URLs from loading.

Parameters

urlPatterns

Patterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in urls.

urls

URL patterns to block. Wildcards ('*') are allowed.