RoutineAgentInterface

interface RoutineAgentInterface

Types

Link copied to clipboard
data class Context(    val token: String?,     val routineActivity: RoutineAgentInterface.State,     val currentAction: Int?,     val actions: Array<Action>?)
Link copied to clipboard
interface RoutineListener
Link copied to clipboard
enum State : Enum<RoutineAgentInterface.State>

Functions

Link copied to clipboard
abstract fun addListener(listener: RoutineAgentInterface.RoutineListener)

Add listener for routine

Link copied to clipboard
abstract fun getContext(): RoutineAgentInterface.Context

Returns a current context

Link copied to clipboard
abstract fun getState(): RoutineAgentInterface.State
Link copied to clipboard
abstract fun pause(directive: StartDirectiveHandler.StartDirective): Boolean

Pause a routine started by directive

Link copied to clipboard
abstract fun removeListener(listener: RoutineAgentInterface.RoutineListener)

Remove listener for routine

Link copied to clipboard
abstract fun resume(directive: StartDirectiveHandler.StartDirective): Boolean

Resume a routine started by directive

Link copied to clipboard
abstract fun start(directive: StartDirectiveHandler.StartDirective): Boolean

Start a routine

Link copied to clipboard
abstract fun stop(directive: StartDirectiveHandler.StartDirective): Boolean

Stop a routine started by directive

Inheritors

Link copied to clipboard