Skip to main content
Version: 2.0

Android

How to get screen

To get the screen, you need to call the screens field on the HumaAppKitManager instance.

val humaAppKitManager = HumaAppKitManager.getInstance(context)
val screen = humaAppKitManager.screens

To observe the screen changes, you can use the screensState field on the HumaAppKitManager instance.

val humaAppKitManager = HumaAppKitManager.getInstance(context)
humaAppKitManager.screensState.collect { screens ->
// Handle screen changes
}

To get specific screen, you can use the findScreen method on the HumaAppKitManager instance.

val humaAppKitManager = HumaAppKitManager.getInstance(context)
val screen = humaAppKitManager.findScreen("screenId")