1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16export class Constants {
17  static readonly APP_KEY_ASYNC_MANAGER = 'app_key_async_manager'
18  static readonly APP_KEY_SETTINGS_UTILS = 'app_key_settings_util'
19  static readonly APP_KEY_CAMERA_WORKER = 'APP_KEY_CAMERA_WORKER'
20  static readonly APP_KEY_WINDOW_SIZE = 'app_key_window_size'
21}
22
23export enum CameraStatus {
24  CAMERA_BEFORE_VALUE = 'CAMERA_BEFORE_VALUE',
25  CAMERA_BEGIN_INIT = 'CAMERA_BEGIN_INIT',
26  CAMERA_INIT_FINISHED = 'CAMERA_INIT_FINISHED',
27
28  CAMERA_BEGIN_PREVIEW = 'CAMERA_BEGIN_PREVIEW',
29  CAMERA_PREVIEW_FINISHED = 'CAMERA_PREVIEW_FINISHED',
30
31  CAMERA_RELEASING = 'CAMERA_RELEASING',
32  CAMERA_RELEASE_FINISHED = 'CAMERA_RELEASE_FINISHED',
33
34  CAMERA_BEGIN_TAKE_VIDEO = 'CAMERA_BEGIN_TAKE_VIDEO',
35  CAMERA_TAKE_VIDEO_FINISHED = 'CAMERA_TAKE_VIDEO_FINISHED'
36}
37
38export enum CameraNeedStatus {
39  CAMERA_NO_NEED_TO_DO = 'CAMERA_NO_NEED_TO_DO',
40  CAMERA_NEED_INIT = 'CAMERA_NEED_INIT',
41  CAMERA_NEED_RELEASE = 'CAMERA_NEED_RELEASE'
42}