1/* 2 * Copyright (c) 2021-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 16/** 17 * Load style of progress bar. 18 * @since 8 19 */ 20/** 21 * Load style of progress bar. 22 * @form 23 * @since 9 24 */ 25declare enum LoadingProgressStyle { 26 /** 27 * Default style. 28 * @since 8 29 */ 30 /** 31 * Default style. 32 * @form 33 * @since 9 34 */ 35 Default, 36 37 /** 38 * Announcement style. 39 * @since 8 40 */ 41 /** 42 * Announcement style. 43 * @form 44 * @since 9 45 */ 46 Circular, 47 48 /** 49 * The style of the track. 50 * @since 8 51 */ 52 /** 53 * The style of the track. 54 * @form 55 * @since 9 56 */ 57 Orbital, 58} 59 60/** 61 * Provides an interface for extending the loading progress. 62 * @since 8 63 */ 64/** 65 * Provides an interface for extending the loading progress. 66 * @form 67 * @since 9 68 */ 69interface LoadingProgressInterface { 70 /** 71 * Called when the progress bar progress is viewed. 72 * @since 8 73 */ 74 /** 75 * Called when the progress bar progress is viewed. 76 * @form 77 * @since 9 78 */ 79 (): LoadingProgressAttribute; 80} 81 82/** 83 * Declare the progress bar being loaded 84 * @since 8 85 */ 86/** 87 * Declare the progress bar being loaded 88 * @form 89 * @since 9 90 */ 91declare class LoadingProgressAttribute extends CommonMethod<LoadingProgressAttribute> { 92 /** 93 * Load the color of the progress bar. 94 * @since 8 95 */ 96 /** 97 * Load the color of the progress bar. 98 * @form 99 * @since 9 100 */ 101 color(value: ResourceColor): LoadingProgressAttribute; 102} 103 104/** 105 * Defines LoadingProgress Component. 106 * @since 8 107 */ 108/** 109 * Defines LoadingProgress Component. 110 * @form 111 * @since 9 112 */ 113declare const LoadingProgress: LoadingProgressInterface; 114 115/** 116 * Loading Progress Extensions on Declarative Classes 117 * @since 8 118 */ 119/** 120 * Loading Progress Extensions on Declarative Classes 121 * @form 122 * @since 9 123 */ 124declare const LoadingProgressInstance: LoadingProgressAttribute; 125