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

url

the URL containing the query with values.

serializer

serializer of type T.

Type Parameters

T

the type of data to parse the url into


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

uri

the Uri containing the query with values.

serializer

serializer of type T.

Type Parameters

T

the type of data to parse the url into

fun <T> LinksManager.handleIncomingLink(url: NSURL, serializer: KSerializer<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

url

the NSURL containing the query with values.

serializer

serializer of type T.

Type Parameters

T

the type of data to parse the url into