FileDocCategorySizeDatePackage
CameraActions.javaAPI DocAndroid 5.1 API5088Thu Mar 12 22:22:48 GMT 2015com.android.ex.camera2.portability

CameraActions

public class CameraActions extends Object

Fields Summary
public static final int
OPEN_CAMERA
public static final int
RELEASE
public static final int
RECONNECT
public static final int
UNLOCK
public static final int
LOCK
public static final int
SET_PREVIEW_TEXTURE_ASYNC
public static final int
START_PREVIEW_ASYNC
public static final int
STOP_PREVIEW
public static final int
SET_PREVIEW_CALLBACK_WITH_BUFFER
public static final int
ADD_CALLBACK_BUFFER
public static final int
SET_PREVIEW_DISPLAY_ASYNC
public static final int
SET_PREVIEW_CALLBACK
public static final int
SET_ONE_SHOT_PREVIEW_CALLBACK
public static final int
SET_PARAMETERS
public static final int
GET_PARAMETERS
public static final int
REFRESH_PARAMETERS
public static final int
APPLY_SETTINGS
public static final int
AUTO_FOCUS
public static final int
CANCEL_AUTO_FOCUS
public static final int
SET_AUTO_FOCUS_MOVE_CALLBACK
public static final int
SET_ZOOM_CHANGE_LISTENER
public static final int
CANCEL_AUTO_FOCUS_FINISH
public static final int
SET_FACE_DETECTION_LISTENER
public static final int
START_FACE_DETECTION
public static final int
STOP_FACE_DETECTION
public static final int
ENABLE_SHUTTER_SOUND
public static final int
SET_DISPLAY_ORIENTATION
public static final int
SET_JPEG_ORIENTATION
public static final int
CAPTURE_PHOTO
Constructors Summary
private CameraActions()

        throw new AssertionError();
    
Methods Summary
public static java.lang.Stringstringify(int action)


         
        switch (action) {
            case OPEN_CAMERA:
                return "OPEN_CAMERA";
            case RELEASE:
                return "RELEASE";
            case RECONNECT:
                return "RECONNECT";
            case UNLOCK:
                return "UNLOCK";
            case LOCK:
                return "LOCK";
            case SET_PREVIEW_TEXTURE_ASYNC:
                return "SET_PREVIEW_TEXTURE_ASYNC";
            case START_PREVIEW_ASYNC:
                return "START_PREVIEW_ASYNC";
            case STOP_PREVIEW:
                return "STOP_PREVIEW";
            case SET_PREVIEW_CALLBACK_WITH_BUFFER:
                return "SET_PREVIEW_CALLBACK_WITH_BUFFER";
            case ADD_CALLBACK_BUFFER:
                return "ADD_CALLBACK_BUFFER";
            case SET_PREVIEW_DISPLAY_ASYNC:
                return "SET_PREVIEW_DISPLAY_ASYNC";
            case SET_PREVIEW_CALLBACK:
                return "SET_PREVIEW_CALLBACK";
            case SET_ONE_SHOT_PREVIEW_CALLBACK:
                return "SET_ONE_SHOT_PREVIEW_CALLBACK";
            case SET_PARAMETERS:
                return "SET_PARAMETERS";
            case GET_PARAMETERS:
                return "GET_PARAMETERS";
            case REFRESH_PARAMETERS:
                return "REFRESH_PARAMETERS";
            case APPLY_SETTINGS:
                return "APPLY_SETTINGS";
            case AUTO_FOCUS:
                return "AUTO_FOCUS";
            case CANCEL_AUTO_FOCUS:
                return "CANCEL_AUTO_FOCUS";
            case SET_AUTO_FOCUS_MOVE_CALLBACK:
                return "SET_AUTO_FOCUS_MOVE_CALLBACK";
            case SET_ZOOM_CHANGE_LISTENER:
                return "SET_ZOOM_CHANGE_LISTENER";
            case CANCEL_AUTO_FOCUS_FINISH:
                return "CANCEL_AUTO_FOCUS_FINISH";
            case SET_FACE_DETECTION_LISTENER:
                return "SET_FACE_DETECTION_LISTENER";
            case START_FACE_DETECTION:
                return "START_FACE_DETECTION";
            case STOP_FACE_DETECTION:
                return "STOP_FACE_DETECTION";
            case ENABLE_SHUTTER_SOUND:
                return "ENABLE_SHUTTER_SOUND";
            case SET_DISPLAY_ORIENTATION:
                return "SET_DISPLAY_ORIENTATION";
            case CAPTURE_PHOTO:
                return "CAPTURE_PHOTO";
            default:
                return "UNKNOWN(" + action + ")";
        }