handleIncomingLink

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.

Return

the T described by the url or null if the object was not described by the URL

Parameters

T

the type of data to parse the url into

url

the URL containing the query with values.

serializer

serializer of type T.


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.

Return

the T described by the uri or null if the object was not described by the Uri

Parameters

T

the type of data to parse the url into

uri

the Uri containing the query with values.

serializer

serializer of type T.

fun <T> <Error class: unknown class>.handleIncomingLink(url: <Error class: unknown class>, serializer: <Error class: unknown class><T>): T?

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

Return

the T described by the url or null if the object was not described by the NSURL

Parameters

T

the type of data to parse the url into

url

the NSURL containing the query with values.

serializer

serializer of type T.