Package com.motorro.keeplink.deeplink

Contains tools to build deep-link actions and some useful action parsers

Types

Link copied to clipboard
abstract class Action : PshComponents

Deep link action marker class.

Link copied to clipboard
fun interface ActionParser<out A : Action>

Parses action from action components

Link copied to clipboard
open class BranchActionParser<A : Action>(children: Iterable<ActionParser<A>>, default: ActionParser<A>) : ActionParser<A>

Parser to parse path branch

Link copied to clipboard
class DeepLink<out A : Action>(val action: A, val utm: Utm) : PshComponents, WithAction<A>

Deep-link object

Link copied to clipboard
open class DeepLinkSerializer<A : Action>(builder: LinkBuilder<A>, parser: LinkParser<A>) : KSerializer<DeepLink<A>>

Serializes DeepLink to deep-link URI

Link copied to clipboard
class DefaultActionParser<A : Action>(action: () -> A?) : ActionParser<A>

Used in composite parsers to return default action

Link copied to clipboard
open class LinkBuilder<in A : Action>(targetScheme: String, targetHost: String)

Builds deep-link with predefined scheme and host components

Link copied to clipboard
open class LinkParser<A : Action>(    parser: ActionParser<A>,     targetScheme: String,     targetHost: String)

Deep-link parser

Link copied to clipboard
open class SegmentCheckParser<A : Action>(segment: String, next: ActionParser<A>) : ActionParser<A>

Common matcher that checks if segment in parse equals segment

Link copied to clipboard
interface WithAction<out A : Action>

Contains an action

Functions

Link copied to clipboard
fun <A : Action> deepLink(action: A): DeepLink<A>

Creates a new deep-link