CameraOrientation

Represents the orientation, relative to a base anchor.

Entries

Link copied to clipboard

The default orientation relative to your base anchor, aka no rotation at all.

Link copied to clipboard

Rotated 90° right. Whatever was "top" before is now "right".

Link copied to clipboard

Inverted upside down relative to your base anchor.

Link copied to clipboard

Rotated 90° left. Whatever was "top" before is now "left".

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The Surface.ROTATION_* value of this CameraOrientation, used as a CameraX target rotation.

Functions

Link copied to clipboard
fun CameraOrientation.toUIImageOrientation(isMirrored: Boolean = false): UIImageOrientation

Converts this CameraOrientation to a UIImageOrientation, mirrored if isMirrored.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.