Skip to content

Implementation Mode

Lucas Yuji edited this page Nov 3, 2022 · 2 revisions

There are two implementation modes:

  • ImplementationMode.Performance
  • ImplementationMode.Compatible

To use follow the example below:

var implementationMode by remember { mutableStateOf(ImplementationMode.Compatible) }

CameraPreview(
  //...
  implementationMode = implementationMode // default is ImplementationMode.Performance
) {
  Button(
    onClick = { implementationMode = implementationMode.reverse } // reverse the currently implementation mode
  )
}