fun createMatcher(context: Context, blackListFile: Int, overrides: IntArray?, whiteListFile: Int, enabledCategories: Set<String> = supportedCategories): UrlMatcher
(source)
Creates a new matcher instance for the provided URL lists.
blackListFile
- resource ID to a JSON file containing the black list
overrides
- array of resource ID to JSON files containing black list overrides
whiteListFile
- resource ID to a JSON file containing the white list
fun createMatcher(black: Reader, overrides: List<Reader>?, white: Reader, enabledCategories: Set<String> = supportedCategories): UrlMatcher
(source)
Creates a new matcher instance for the provided URL lists.
black
- reader containing the black list
overrides
- array of resource ID to JSON files containing black list overrides
white
- resource ID to a JSON file containing the white list