/* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export class Constants { // string value static readonly FROM_CONTROLLER_MANAGER: string = 'form_controller_manager'; static readonly PHOTOS_FORM_STORAGE_PREFIX: string = 'photos_form_'; static readonly PHOTOS_FORM_CAMERA_NAME: string = 'Camera'; static readonly PHOTOS_FORM_ALBUM_NAME_ALL: string = 'default_all'; static readonly PHOTOS_FORM_OPERATION_MODE_NONE: number = 0; static readonly PHOTOS_FORM_OPERATION_MODE_DESTROY: number = 1; static readonly PHOTOS_FORM_OPERATION_MODE_UPDATE: number = 2; static readonly PHOTOS_FORM_OPERATION_MODE_EVENT: number = 3; static readonly PHOTOS_FORM_OPERATION_MODE_CALLBACK: number = 4; static readonly PHOTOS_FORM_OPERATION_IS_SHOW_AlbumName: number = 5; static readonly FORM_ID: string = 'formId_'; static readonly DISPLAY_NAME: string = 'displayName_'; static readonly ALBUM_NAME: string = 'albumName_'; static readonly CURRENT_URL: string = 'currentUri_'; static readonly INTERVAL_TIME: string = 'intervalTime_'; static readonly CURRENT_INDEX: string = 'currentIndex_'; static readonly FLEX_GROW: number = 2; static readonly DIALOG_BOTTOM_OFFSET: number = 12; static readonly DEFAULT_TIME: number = 30; static readonly NUMBER_5: number = 5; static readonly NUMBER_1: number = 1; static readonly NUMBER_2: number = 2; static readonly NUMBER_3: number = 3; static readonly NUMBER_4: number = 4; static readonly NUMBER_8: number = 8; static readonly NUMBER_12: number = 12; static readonly NUMBER_24: number = 24; static readonly FROM_PLAYBACK_INTERVAL: string = 'form_playback_interval'; static readonly FROM_PLAYBACK_ISSHOWNAME: string = 'form_playback_isShowName'; static readonly PHOTOS_FORM_DEFAULT_PERIOD: number = 5; static readonly FA_INDEX_VALUE: string = 'faIndexValue'; static readonly FA_FD_NULL: number = -1; static readonly RADIO_DIVIDER_STROKE_WIDTH: number = 0.5; }