Action

abstract class Action : PshComponents

Deep link action marker class.

Represents an action part of deep-link - what needs to be done by application. Extend with a sealed class

For example:

  • To open some application page

  • To run data update

Constructors

Link copied to clipboard
fun Action()

Functions

Link copied to clipboard
open override fun getHash(): String

Hash component - what to display. Represents extra action to do in activity.

Link copied to clipboard
open override fun getPath(): Array<String>

Path component - where to go. Represents a path to activity in an application: screen, action, etc. Parameters exactly identifying the activity may be represented as path.

Link copied to clipboard
open override fun getSearch(): Array<Param>

Search component - what to do. Represents parameters to activity specified by getPath which instruct activity what to do.

Properties

Link copied to clipboard
open val isValid: Boolean = true

True if action is valid to execute