android-components / mozilla.components.browser.engine.system.matcher / UrlMatcher / matches

# matches

`fun matches(resourceURI: String, pageURI: String): Boolean` (source)
`fun matches(resourceURI: Uri, pageURI: Uri): Boolean` (source)

Checks if the given page URI is blacklisted for the given resource URI. Returns true if the site (page URI) is allowed to access the resource URI, otherwise false.

### Parameters

`resourceURI` - URI of a resource to be loaded by the page

`pageURI` - URI of the page