View source
enum abstract CameraPosition(Null<Int>)
package openfl.media
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
The CameraPosition class defines constants for the position
property of
the Camera class.
See also:
openfl.media.Camera
Variables
inlineread onlyBACK:CameraPosition = 0
The Camera.position
property returns this value for a back camera.
inlineread onlyFRONT:CameraPosition = 1
The Camera.position
property returns this value for a front camera.
inlineread onlyUNKNOWN:CameraPosition = 2
The Camera.position
property returns this value when the position of
the Camera cannot be determined. This is the default value.