findViewTreeCompositionContext

Returns the parent [CompositionContext] for this point in the view hierarchy, or `null` if none

findViewTreeCompositionContext

Function

Android
fun View.findViewTreeCompositionContext(): CompositionContext?

Returns the parent CompositionContext for this point in the view hierarchy, or null if none can be found.

See compositionContext to get or set the parent CompositionContext for a specific view.