1/* 2 * Copyright (c) 2021 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 */ 20declare enum LoadingProgressStyle { 21 /** 22 * Default style. 23 * @since 8 24 */ 25 Default, 26 27 /** 28 * Announcement style. 29 * @since 8 30 */ 31 Circular, 32 33 /** 34 * The style of the track. 35 * @since 8 36 */ 37 Orbital, 38} 39 40/** 41 * Provides an interface for extending the loading progress. 42 * @since 8 43 */ 44interface LoadingProgressInterface { 45 /** 46 * Called when the progress bar progress is viewed. 47 * @since 8 48 */ 49 (): LoadingProgressAttribute; 50} 51 52/** 53 * Declare the progress bar being loaded 54 * @since 8 55 */ 56declare class LoadingProgressAttribute extends CommonMethod<LoadingProgressAttribute> { 57 /** 58 * Load the color of the progress bar. 59 * @since 8 60 */ 61 color(value: ResourceColor): LoadingProgressAttribute; 62} 63 64/** 65 * @since 8 66 */ 67declare const LoadingProgress: LoadingProgressInterface; 68/** 69 * Loading Progress Extensions on Declarative Classes 70 * @since 8 71 */ 72declare const LoadingProgressInstance: LoadingProgressAttribute; 73