UriHandler

interface UriHandler

Allows to implement a custom fetching process for specific URIs. It is the handler's job to fetch the URI and return the JS body payload.

Functions

Link copied to clipboard
abstract fun fetch(uri: Uri): WritableMap
Fetch the URI and return the JS body payload.
Link copied to clipboard
abstract fun supports(uri: Uri, responseType: String): Boolean
Returns if the handler should be used for an URI.