CameraState
Enumeration CameraState
describes the camera state.
- Android
- Objective-C
- Swift
@IntDef({OPENING,OPENED,CLOSING,CLOSED}) @Retention(RetentionPolicy.CLASS) public @interface EnumCameraState { // The camera is opening. public static final int OPENING = 0; // The camera is opened. public static final int OPENED = 1; // The camera is closing. public static final int CLOSING = 2; // The camera is closed. public static final int CLOSED = 3; }
typedef NS_ENUM(NSInteger, DSCameraState) { /** * The camera is opening. */ CameraStateOpening = 0, /** * The camera is opened. */ CameraStateOpened = 1, /** * The camera is closing. */ CameraStateClosing = 2, /** * The camera is closed. */ CameraStateClosed = 3 };
public enum CameraState : Int{ /** * The camera is opening. */ opening = 0 /** * The camera is opened. */ opened = 1 /** * The camera is closing. */ closing = 2 /** * The camera is closed. */ closed = 3 }