10. Switch Camera Face

To switch camera face from front to rear or vice versa, ARGSession must be paused beforehand, change camera face, and resume the ARGSession in the order.

A sample code of flipping camera face is written below.

Java
Kotlin
Java
argsession.pause();
camera.changeCameraFacing();
argsession.resume();
Kotlin
argsession.pause()
camera.changeCameraFacing()
argsession.resume()