• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023-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
16/**
17 * @file
18 * @kit ArkUI
19 */
20/*** if arkts 1.2 */
21import { ResourceStr } from './arkui/component/units';
22import { Prop } from './arkui/stateManagement/decorator';
23import { Component } from './arkui/component/customComponent';
24import { Builder } from './arkui/component/builder';
25/*** endif */
26
27/**
28 * Declare component SwipeRefresher
29 * @syscap SystemCapability.ArkUI.ArkUI.Full
30 * @since 10
31 */
32/**
33 * Declare component SwipeRefresher
34 * @syscap SystemCapability.ArkUI.ArkUI.Full
35 * @atomicservice
36 * @since 11
37 */
38/**
39 * Declare component SwipeRefresher
40 * @syscap SystemCapability.ArkUI.ArkUI.Full
41 * @crossplatform
42 * @atomicservice
43 * @since 20
44 * @arkts 1.1&1.2
45 */
46@Component
47export declare struct SwipeRefresher {
48  /**
49   * Sets the content when loading.
50   * @type { string }
51   * @syscap SystemCapability.ArkUI.ArkUI.Full
52   * @since 10
53   */
54  /**
55   * Sets the content when loading.
56   * @type { string }
57   * @syscap SystemCapability.ArkUI.ArkUI.Full
58   * @atomicservice
59   * @since 11
60   */
61  /**
62   * Sets the content when loading.
63   * @type { ?ResourceStr }
64   * @syscap SystemCapability.ArkUI.ArkUI.Full
65   * @crossplatform
66   * @atomicservice
67   * @since 20
68   * @arkts 1.1&1.2
69   */
70  @Prop content?: ResourceStr;
71
72  /**
73   * Whether the component is loading.
74   * type { boolean }
75   * @syscap SystemCapability.ArkUI.ArkUI.Full
76   * @since 10
77   */
78  /**
79   * Whether the component is loading.
80   * type { boolean }
81   * @syscap SystemCapability.ArkUI.ArkUI.Full
82   * @atomicservice
83   * @since 11
84   */
85  /**
86   * Whether the component is loading.
87   * type { boolean }
88   * @syscap SystemCapability.ArkUI.ArkUI.Full
89   * @crossplatform
90   * @atomicservice
91   * @since 20
92   * @arkts 1.1&1.2
93   */
94  @Prop isLoading: boolean;
95
96  /**
97   * The method to build component.
98   * @syscap SystemCapability.ArkUI.ArkUI.Full
99   * @atomicservice
100   * @since 20
101   * @arkts 1.2
102   */
103  @Builder build(): void;
104}
105