Priority

object Priority

Predefined priority constants for use with @Subscribe and lambda subscribe overloads.

Higher values fire first. Handlers with equal priority fire in registration order. Any integer value is valid, not just the constants defined here:

@Subscribe(priority = 50)
fun onEvent(e: MyEvent) { ... }

Properties

Link copied to clipboard
const val HIGH: Int = 100

High priority (100).

Link copied to clipboard
const val HIGHEST: Int = 200

Highest predefined priority (200). Fires before all other predefined levels.

Link copied to clipboard
const val LOW: Int

Low priority (-100).

Link copied to clipboard
const val LOWEST: Int

Lowest predefined priority (-200). Fires after all other predefined levels.

Link copied to clipboard
const val NORMAL: Int = 0

Normal priority (0). The default when no priority is specified.