Resource Base
Table of contents

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
}

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 4.x
      • Version 4.0.1
      • Version 4.0.0
    • Version 3.x
      • Version 3.3.10
      • Version 3.3.9
      • Version 3.3.8
      • Version 3.3.7
      • Version 3.3.6
      • Version 3.3.5
      • Version 3.3.4
      • Version 3.3.3
      • Version 3.3.2
      • Version 3.3.1
      • Version 3.3.0
      • Version 3.2.0
      • Version 3.1.0
      • Version 3.0.1
      • Version 3.0.0
    • Version 2.x
      • Version 2.3.5
      • Version 2.3.2
      • Version 2.3.1
      • Version 2.3.0
      • Version 2.1.4
      • Version 2.1.3
      • Version 2.1.0
      • Version 2.0.0
    • Version 1.x
      • Version 1.0.3
      • Version 1.0.1
      • Version 1.0.0
    Change +