CameraSurface

enum CameraSurface : Parcelable

Entries

Link copied to clipboard

For displaying camera preview, best surface for device will be selected.

Link copied to clipboard

android.view.TextureView will be used for camera preview. Texture view is slower and uses more battery power android.view.SurfaceView, but has less issues with layout and animations over it.

Link copied to clipboard

android.view.SurfaceView will be used for camera preview. Surface view is very fast and more power efficient than android.view.TextureView, but may have problems with layout and displaying animations and other views in rich layouts on some devices.

Properties

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

Functions

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

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. This method may be used to iterate over the constants.

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