Class ArComposeView
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.BasePolygonView
public final class ArComposeView implements BasePolygonView
A android.view.View that can host Jetpack Compose UI content. Use setContent to supply the content composable function for the view.
By default, the composition is disposed according to ViewCompositionStrategy.Default. Call disposeComposition to dispose of the underlying composition earlier, or if the view is never initially attached to a window. (The requirement to dispose of the composition explicitly in the event that the view is never (re)attached is temporary.)
-
-
Constructor Summary
Constructors Constructor Description ArComposeView(Context context, AttributeSet attrs, Integer defStyleAttr)
ArComposeView(Context context, AttributeSet attrs)
ArComposeView(Context context)
-
Method Summary
Modifier and Type Method Description Unit
Content()
CharSequence
getAccessibilityClassName()
final Unit
setContent(Function0<Unit> content)
Set the Jetpack Compose UI content for this view. -
-
Constructor Detail
-
ArComposeView
ArComposeView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
ArComposeView
ArComposeView(Context context, AttributeSet attrs)
-
ArComposeView
ArComposeView(Context context)
-
-
Method Detail
-
getAccessibilityClassName
CharSequence getAccessibilityClassName()
-
setContent
final Unit setContent(Function0<Unit> content)
Set the Jetpack Compose UI content for this view. Initial composition will occur when the view becomes attached to a window or when createComposition is called, whichever comes first.
-
-
-
-