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 RouterConstants { 16 static readonly ENTRY_FROM_NONE = 0; 17 static readonly ENTRY_FROM_CAMERA = 1; 18 static readonly ENTRY_FROM_SINGLE_SELECT = 2; 19 static readonly ENTRY_FROM_MULTIPLE_SELECT = 3; 20 static readonly ENTRY_FROM_RECYCLE = 4; 21 static readonly ENTRY_FROM_DISTRIBUTED = 5; 22 static readonly ENTRY_FROM_NORMAL = 6; 23 static readonly ENTRY_FROM_FORM_ABILITY = 7; 24 static readonly ENTRY_FROM_FORM_FORM_EDITOR = 8; 25 static readonly ENTRY_FROM_VIEW_DATA = 9; 26 static readonly ENTRY_FROM_FORM_ABILITY_NONE = 12; 27 static readonly ENTRY_FROM = { 28 NORMAL: 0, 29 CAMERA: 1, 30 SINGLE_SELECT: 2, 31 MULTIPLE_SELECT: 3, 32 RECYCLE: 4, 33 DISTRIBUTED: 5, 34 CARD: 6, 35 VIEW_DATA: 7 36 } 37}