LinksManager

interface LinksManager

Manager for handling Links. Useful for handling deeplinks

Inheritors

Types

Link copied to clipboard
interface Builder

Builder for creating a LinksManager

Functions

Link copied to clipboard
abstract fun <T> handleIncomingLink(url: String, serializer: KSerializer<T>): T?

Convert the query parameters of a url into T and return it. When the given url is invalid, it returns null.

Link copied to clipboard
fun <T> LinksManager.handleIncomingLink(uri: Uri, serializer: KSerializer<T>): T?

Convert an incoming Uri query into T and return it. When the given url is invalid, it returns null.

fun <T> LinksManager.handleIncomingLink(url: URL, serializer: KSerializer<T>): T?

Convert an incoming URL query into T and return it. When the given url is invalid, it returns null.

Link copied to clipboard
abstract fun validateLink(url: String): String?

Check a url and returns it if valid, otherwise it returns null.

Link copied to clipboard

Check a Uri and returns it if valid, otherwise it returns null.

Check a URL and returns it if valid, otherwise it returns null.