Compose Component

ActiveFocusListener

ActiveFocusListener

Source set: Android
@Deprecated(
    "Replaced by Modifier.requestFocusOnHierarchyActive(), or the new LocalScreenIsActive, use that instead",
    level = DeprecationLevel.WARNING, // TODO: b/369332589 - Make hidden in a follow up cl
)
@Composable
public fun ActiveFocusListener(onFocusChanged: CoroutineScope.(Boolean) -> Unit)
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: