• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16/**
17 * @file
18 * @kit ArkTS
19 * @arkts 1.2
20 */
21
22/**
23 * The transfer module provides transfer ability for subsystem class or interface.
24 *
25 * @namespace transfer
26 * @syscap SystemCapability.Utils.Lang
27 * @crossplatform
28 * @atomicservice
29 * @since 20
30 */
31declare namespace transfer {
32
33    /**
34     * Any is used for the parameter type and return type of the transfer methods
35     *
36     * @typedef {Object | undefined | null}
37     * @syscap SystemCapability.Utils.Lang
38     * @crossplatform
39     * @atomicservice
40     * @since 20
41     */
42    type Any = Object | undefined | null;
43
44    /**
45     * Converting the 1.0 object to a 1.2 object.
46     *
47     * @param { Any } input The 1.0 object that needs to be converted
48     * @param { string } inputName name registered by the subsystem.
49     * @returns { Object } Object
50     * @syscap SystemCapability.Utils.Lang
51     * @crossplatform
52     * @atomicservice
53     * @since 20
54     */
55    function transferStatic(input: Any, inputName: string): Object;
56
57    /**
58     * Converting the 1.2 object to a 1.0 object.
59     *
60     * @param { Object } input The 1.2 object that needs to be converted
61     * @param { string } inputName name registered by the subsystem.
62     * @returns { Any } Object
63     * @syscap SystemCapability.Utils.Lang
64     * @crossplatform
65     * @atomicservice
66     * @since 20
67     */
68    function transferDynamic(input: Object, inputName: string): Any;
69
70} export default transfer;
71