calculateLayoutOutputId

open fun calculateLayoutOutputId(componentKey: String, type: Int): Long

Calculates a returns a unique ID for a given component key and output type. The IDs will be unique for components in the ComponentTree this ID generator is linked with. If an ID was already generated for a given component, the same ID will be returned. Otherwise, a new unique ID will be generated.

ComponentContext must have a ComponentTree instance.

Parameters

componentKey

The component key

type

The output type @see OutputUnitType