CameraSurface
Entries
For displaying camera preview, best surface for device will be selected.
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.
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.
Functions
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.)
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.