The CameraPosition class defines constants for the position property of the Camera class.

See also:

  • openfl.media.Camera

Variables

@:value(cast 0)@:impl@:enuminlineread onlyBACK:CameraPosition = 0

The Camera.position property returns this value for a back camera.

@:value(cast 1)@:impl@:enuminlineread onlyFRONT:CameraPosition = 1

The Camera.position property returns this value for a front camera.

@:value(cast 2)@:impl@:enuminlineread onlyUNKNOWN:CameraPosition = 2

The Camera.position property returns this value when the position of the Camera cannot be determined. This is the default value.