//[tvlib](../../../index.md)/[org.mjdev.tvlib.extensions](../index.md)/[ComposeExt](index.md) # ComposeExt [androidJvm]\ object [ComposeExt](index.md) ## Types | Name | Summary | |---|---| | [ImagePickerHelper](-image-picker-helper/index.md) | [androidJvm]
class [ImagePickerHelper](-image-picker-helper/index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), launcher: [ManagedActivityResultLauncher](https://developer.android.com/reference/kotlin/androidx/activity/compose/ManagedActivityResultLauncher.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)?>, storagePermission: MultiplePermissionsState) | ## Functions | Name | Summary | |---|---| | [asException](as-exception.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?.[asException](as-exception.md)(): [Exception](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html)? | | [computeCardWidth](compute-card-width.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [computeCardWidth](compute-card-width.md)(ratio: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) = 2.5f): [Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.html) | | [createVerticalColorBrush](create-vertical-color-brush.md) | [androidJvm]
fun [createVerticalColorBrush](create-vertical-color-brush.md)(color: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html), gravity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Brush](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush.html) | | [equals](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#585090901%2FFunctions%2F-1596939238) | [androidJvm]
open operator fun [equals](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#585090901%2FFunctions%2F-1596939238)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [externalMediaPermission](external-media-permission.md) | [androidJvm]
inline fun <[T](external-media-permission.md)> [externalMediaPermission](external-media-permission.md)(onSdk33AndUp: () -> [T](external-media-permission.md), onSdk32AndDown: () -> [T](external-media-permission.md)): [T](external-media-permission.md) | | [handlePermissionState](handle-permission-state.md) | [androidJvm]
fun MultiplePermissionsState.[handlePermissionState](handle-permission-state.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), onGranted: () -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)) | | [hashCode](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#1794629105%2FFunctions%2F-1596939238) | [androidJvm]
open fun [hashCode](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#1794629105%2FFunctions%2F-1596939238)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [isEditMode](is-edit-mode.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [isEditMode](is-edit-mode.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isLandscapeMode](is-landscape-mode.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [isLandscapeMode](is-landscape-mode.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isPortraitMode](is-portrait-mode.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [isPortraitMode](is-portrait-mode.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isTV](is-t-v.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [isTV](is-t-v.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [observedEvents](observed-events.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
inline fun <[T](observed-events.md)> [observedEvents](observed-events.md)(): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[T](observed-events.md)>> | | [observeEvent](observe-event.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
inline fun <[T](observe-event.md)> [observeEvent](observe-event.md)(crossinline onEvent: [T](observe-event.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)) | | [onKey](on-key.md) | [androidJvm]
fun [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html).[onKey](on-key.md)(keyCode: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), action: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = android.view.KeyEvent.ACTION_DOWN, block: () -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html) | | [produceStateInCoroutine](produce-state-in-coroutine.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](produce-state-in-coroutine.md)> [produceStateInCoroutine](produce-state-in-coroutine.md)(initialValue: [T](produce-state-in-coroutine.md), key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = null, block: suspend () -> [T](produce-state-in-coroutine.md)): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[T](produce-state-in-coroutine.md)> | | [rememberColorFromImage](remember-color-from-image.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberColorFromImage](remember-color-from-image.md)(image: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, initialColor: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html) = Color.Transparent, context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html) = LocalContext.current, onError: (error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) = { error -> Timber.e(error) }): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html)> | | [rememberContentResolver](remember-content-resolver.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberContentResolver](remember-content-resolver.md)(): [ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html) | | [rememberDerivedState](remember-derived-state.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](remember-derived-state.md)> [rememberDerivedState](remember-derived-state.md)(initialValue: [T](remember-derived-state.md), block: suspend () -> [T](remember-derived-state.md)): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[T](remember-derived-state.md)>
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](remember-derived-state.md)> [rememberDerivedState](remember-derived-state.md)(key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = Unit, initialValue: [T](remember-derived-state.md), block: suspend () -> [T](remember-derived-state.md)): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[T](remember-derived-state.md)> | | [rememberDerivedStateOf](remember-derived-state-of.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](remember-derived-state-of.md)> [rememberDerivedStateOf](remember-derived-state-of.md)(function: () -> [T](remember-derived-state-of.md), key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = function): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[T](remember-derived-state-of.md)> | | [rememberDrawerState](remember-drawer-state.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberDrawerState](remember-drawer-state.md)(initialValue: [DrawerValue](https://developer.android.com/reference/kotlin/androidx/tv/material3/DrawerValue.html) = if (isEditMode()) DrawerValue.Open else DrawerValue.Closed): [DrawerState](https://developer.android.com/reference/kotlin/androidx/tv/material3/DrawerState.html) | | [rememberFocusRequester](remember-focus-requester.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberFocusRequester](remember-focus-requester.md)(key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = Unit): [FocusRequester](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester.html) | | [rememberFocusState](remember-focus-state.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberFocusState](remember-focus-state.md)(initial: [FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html) = FocusHelper(false)): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html)>
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberFocusState](remember-focus-state.md)(key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, initial: [FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html) = FocusHelper(false)): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html)> | | [rememberImageFromItem](remember-image-from-item.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberImageFromItem](remember-image-from-item.md)(image: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [State](https://developer.android.com/reference/kotlin/androidx/compose/runtime/State.html)<[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?> | | [rememberItemType](remember-item-type.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberItemType](remember-item-type.md)(item: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [ItemType](../../org.mjdev.tvlib.helpers.media/-item-type/index.md) | | [rememberMutableInteractionSource](remember-mutable-interaction-source.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [rememberMutableInteractionSource](remember-mutable-interaction-source.md)(key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? = null): [MutableInteractionSource](https://developer.android.com/reference/kotlin/androidx/compose/foundation/interaction/MutableInteractionSource.html) | | [runNonNullBlock](run-non-null-block.md) | [androidJvm]
fun <[T](run-non-null-block.md)> [runNonNullBlock](run-non-null-block.md)(scope: CoroutineScope, block: ([T](run-non-null-block.md)) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)? = null, arg1: [T](run-non-null-block.md)): Job? | | [runOnceOnStart](run-once-on-start.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [runOnceOnStart](run-once-on-start.md)(key: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, block: suspend CoroutineScope.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)) | | [textFrom](text-from.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](text-from.md)> [textFrom](text-from.md)(text: [T](text-from.md)?): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | | [toDrawable](to-drawable.md) | [androidJvm]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun [Bitmap](https://developer.android.com/reference/kotlin/android/graphics/Bitmap.html).[toDrawable](to-drawable.md)(resources: [Resources](https://developer.android.com/reference/kotlin/android/content/res/Resources.html) = LocalContext.current.resources): [BitmapDrawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/BitmapDrawable.html) | | [toString](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#1616463040%2FFunctions%2F-1596939238) | [androidJvm]
open fun [toString](../../org.mjdev.tvlib.webscrapper.select/-element-not-found-exception/index.md#1616463040%2FFunctions%2F-1596939238)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | ## Properties | Name | Summary | |---|---| | [isClosed](is-closed.md) | [androidJvm]
val [DrawerState](https://developer.android.com/reference/kotlin/androidx/tv/material3/DrawerState.html).[isClosed](is-closed.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isFocused](is-focused.md) | [androidJvm]
val [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html)>.[isFocused](is-focused.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
val [FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html).[isFocused](is-focused.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isNotFocused](is-not-focused.md) | [androidJvm]
val [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html)>.[isNotFocused](is-not-focused.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
val [FocusState](https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusState.html).[isNotFocused](is-not-focused.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isOpen](is-open.md) | [androidJvm]
val [DrawerState](https://developer.android.com/reference/kotlin/androidx/tv/material3/DrawerState.html).[isOpen](is-open.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |