UrlAllowList

Defines a set of URL patterns to match a URL.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Interface that defines a callback that can be used to reject or allow a URL.

Link copied to clipboard
class Scope(rawValue: Int)

Functions

Link copied to clipboard
fun addEntry(pattern: String, scope: UrlAllowList.Scope = Scope.ALL): Boolean

Adds an entry to the URL allow list for URL matching. Patterns must be defined with the following syntax:

Link copied to clipboard

Checks if a given URL is allowed or not with scope Scope.ALL.

Checks if a given URL is allowed or not.

Link copied to clipboard

Sets the urlAllowList callback.