1/* 2 * Copyright (c) 2025 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 const enum EncryptSharingShowCodeEnum { 17 SUCCESS = 0, 18 COUNT_ERROR = 1, 19 FILE_ENCRYPTED_ERROR = 2, 20 SUPPORTED_TYPE_ERROR = 3, 21 SINGLE_SIZE_ERROR_DOC_MB = 4, 22 SINGLE_SIZE_ERROR_IMAGE_VIDEO_MB = 5, 23 NETWORK_ERROR = 6, 24 FILE_NAME_TOO_LONG = 7, 25 PHONE_NUMBER_ERROR = 8, 26 VALID_PHONE_FORMAT_TIP = 9, 27 FILE_PATH_ERROR = 10, 28 ENCRYPT_FAIL_ERROR = 11 29} 30 31export const enum EncryptSharingTerminateCode { 32 BACK = 0, 33 CANCEL = 1, 34 SUCCESS = 2, 35 CHECK_URI_FAILED = 3 36}