EventTrigger

class EventTrigger<E>(parentKey: String, val id: Int, childKey: String, val handle: Handle?)

Allows a top-down communication with a component and its immediate parent. The component must be able to handle com.facebook.litho.annotations.OnTrigger events in order to accept an EventTrigger.

Constructors

Link copied to clipboard
constructor(parentKey: String, id: Int, childKey: String, handle: Handle?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
val key: String
Link copied to clipboard

Functions

Link copied to clipboard
fun dispatchOnTrigger(event: E, params: Array<Any> = arrayOf()): Any?