• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024-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 * @file
17 * @kit ArkUI
18 * @arkts 1.2
19 */
20
21
22// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!
23
24import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime'
25import { ButtonType } from './button'
26import { ClickEvent } from './common'
27import { SecurityComponentMethod, SecurityComponentLayoutDirection } from './securityComponent'
28import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units'
29import { FontStyle, FontWeight, BorderStyle } from './enums'
30import { Resource } from './../../../api/global/resource'
31export enum SaveIconStyle {
32    FULL_FILLED = 0,
33    LINES = 1,
34    PICTURE = 2
35}
36export enum SaveDescription {
37    DOWNLOAD = 0,
38    DOWNLOAD_FILE = 1,
39    SAVE = 2,
40    SAVE_IMAGE = 3,
41    SAVE_FILE = 4,
42    DOWNLOAD_AND_SHARE = 5,
43    RECEIVE = 6,
44    CONTINUE_TO_RECEIVE = 7,
45    SAVE_TO_GALLERY = 8,
46    EXPORT_TO_GALLERY = 9,
47    QUICK_SAVE_TO_GALLERY = 10,
48    RESAVE_TO_GALLERY = 11
49}
50export interface SaveButtonOptions {
51    icon?: SaveIconStyle;
52    text?: SaveDescription;
53    buttonType?: ButtonType;
54}
55export enum SaveButtonOnClickResult {
56    SUCCESS = 0,
57    TEMPORARY_AUTHORIZATION_FAILED = 1
58}
59export interface SaveButtonInterface {
60    invoke(): SaveButtonAttribute;
61
62}
63export type Callback_ClickEvent_SaveButtonOnClickResult_Void = (event: ClickEvent,
64    result: SaveButtonOnClickResult) => void;
65export interface SaveButtonAttribute extends SecurityComponentMethod {
66    @memo
67    onClick(value: ((event: ClickEvent,result: SaveButtonOnClickResult) => void)): this;
68}
69@memo
70@ComponentBuilder
71export declare function SaveButton(
72    options?: SaveButtonOptions | undefined,
73    @memo
74    content_?: () => void,
75): SaveButtonAttribute
76