1/* 2 * Copyright (c) 2022 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 */ 15export class Constants { 16 // string value 17 static readonly FROM_CONTROLLER_MANAGER = 'form_controller_manager'; 18 static readonly PHOTOS_FORM_STORAGE_PREFIX = 'photos_form_'; 19 static readonly PHOTOS_FORM_CAMERA_NAME = 'Camera'; 20 static readonly PHOTOS_FORM_ALBUM_NAME_ALL = 'default_all'; 21 static readonly PHOTOS_FORM_OPERATION_MODE_NONE = 0; 22 static readonly PHOTOS_FORM_OPERATION_MODE_DESTROY = 1; 23 static readonly PHOTOS_FORM_OPERATION_MODE_UPDATE = 2; 24 static readonly PHOTOS_FORM_OPERATION_MODE_EVENT = 3; 25 static readonly PHOTOS_FORM_OPERATION_MODE_CALLBACK = 4; 26 static readonly FORM_ID = 'formId_'; 27 static readonly DISPLAY_NAME = 'displayName_'; 28 static readonly ALBUM_NAME = 'albumName_'; 29 static readonly CURRENT_URL = 'currentUri_'; 30 static readonly INTERVAL_TIME = 'intervalTime_'; 31 static readonly CURRENT_INDEX = 'currentIndex_'; 32 static readonly FLEX_GROW = 2; 33 static readonly DIALOG_BOTTOM_OFFSET: number = 12; 34 static readonly NUMBER_2 = 2; 35 static readonly NUMBER_3 = 3; 36 static readonly NUMBER_4: number = 4; 37 static readonly NUMBER_8: number = 8; 38 static readonly NUMBER_12: number = 12; 39 static readonly NUMBER_24: number = 24; 40 static readonly FROM_PLAYBACK_INTERVAL = 'form_playback_interval'; 41 static readonly PHOTOS_FORM_DEFAULT_PERIOD = 30; 42}