CameraType

enum CameraType : Parcelable

Entries

Link copied to clipboard

Will use device's default camera. If device has got only back facing camera, back facing camera will be used. If device has got only front facing camera, front facing camera will be used. If device has got both cameras, back facing camera will be used.

Link copied to clipboard

Will use device's back facing camera, if it exists. If back facing camera does not exist, error will be raised.

Link copied to clipboard

Will use device's front facing camera, if it exists. If front facing camera does not exist, error will be raised.

Properties

Link copied to clipboard
@NonNull
val CREATOR: Parcelable.Creator<CameraType>

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun valueOf(name: String): CameraType

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
open fun values(): Array<CameraType>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)