Function

findViewTreeCompositionContext

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

findViewTreeCompositionContext

Source set: Android
public 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.

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: