1/* 2 * Copyright (c) 2022-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 // string value 18 static readonly FROM_CONTROLLER_MANAGER: string = 'form_controller_manager'; 19 static readonly PHOTOS_FORM_STORAGE_PREFIX: string = 'photos_form_'; 20 static readonly PHOTOS_FORM_CAMERA_NAME: string = 'Camera'; 21 static readonly PHOTOS_FORM_ALBUM_NAME_ALL: string = 'default_all'; 22 static readonly PHOTOS_FORM_OPERATION_MODE_NONE: number = 0; 23 static readonly PHOTOS_FORM_OPERATION_MODE_DESTROY: number = 1; 24 static readonly PHOTOS_FORM_OPERATION_MODE_UPDATE: number = 2; 25 static readonly PHOTOS_FORM_OPERATION_MODE_EVENT: number = 3; 26 static readonly PHOTOS_FORM_OPERATION_MODE_CALLBACK: number = 4; 27 static readonly PHOTOS_FORM_OPERATION_IS_SHOW_AlbumName: number = 5; 28 static readonly FORM_ID: string = 'formId_'; 29 static readonly DISPLAY_NAME: string = 'displayName_'; 30 static readonly ALBUM_NAME: string = 'albumName_'; 31 static readonly CURRENT_URL: string = 'currentUri_'; 32 static readonly INTERVAL_TIME: string = 'intervalTime_'; 33 static readonly CURRENT_INDEX: string = 'currentIndex_'; 34 static readonly FLEX_GROW: number = 2; 35 static readonly DIALOG_BOTTOM_OFFSET: number = 12; 36 static readonly DEFAULT_TIME: number = 30; 37 static readonly NUMBER_5: number = 5; 38 static readonly NUMBER_1: number = 1; 39 static readonly NUMBER_2: number = 2; 40 static readonly NUMBER_3: number = 3; 41 static readonly NUMBER_4: number = 4; 42 static readonly NUMBER_8: number = 8; 43 static readonly NUMBER_12: number = 12; 44 static readonly NUMBER_24: number = 24; 45 static readonly FROM_PLAYBACK_INTERVAL: string = 'form_playback_interval'; 46 static readonly FROM_PLAYBACK_ISSHOWNAME: string = 'form_playback_isShowName'; 47 static readonly PHOTOS_FORM_DEFAULT_PERIOD: number = 5; 48 static readonly FA_INDEX_VALUE: string = 'faIndexValue'; 49 static readonly FA_FD_NULL: number = -1; 50 static readonly RADIO_DIVIDER_STROKE_WIDTH: number = 0.5; 51}