代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/interface_sdk-js 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit ArkData
*/
/**
* Provide uniform data struct definition.
*
* @namespace uniformDataStruct
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
declare namespace uniformDataStruct {
/**
* Describe the plain text uniform data struct.
*
* @interface PlainText
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
interface PlainText {
/**
* Indicates the uniform data type of this data struct.
*
* @type { 'general.plain-text' }
* @readonly
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
readonly uniformDataType: 'general.plain-text';
/**
* Indicates the content of the PlainText.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
textContent: string;
/**
* Indicates the abstract of the PlainText.
* @type { ?string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
abstract?: string;
/**
* Indicates the details of the PlainText.
*
* @type { ?Record<string, string> }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
details?: Record<string, string>;
}
/**
* Describe the hyperlink uniform data struct.
*
* @interface Hyperlink
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
interface Hyperlink {
/**
* Indicates the uniform data type of this data struct.
*
* @type { 'general.hyperlink' }
* @readonly
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
readonly uniformDataType: 'general.hyperlink';
/**
* Indicates the url of of the Hyperlink.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
url: string;
/**
* Indicates the description of the Hyperlink.
* @type { ?string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
description?: string;
/**
* Indicates the details of the Hyperlink.
*
* @type { ?Record<string, string> }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
details?: Record<string, string>;
}
/**
* Describe the html uniform data struct.
*
* @interface HTML
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
interface HTML {
/**
* Indicates the uniform data type of this data struct.
*
* @type { 'general.html' }
* @readonly
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
readonly uniformDataType: 'general.html';
/**
* Indicates the content of html, with html tags.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
htmlContent: string;
/**
* Indicates the plain content of html.
*
* @type { ?string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
plainContent?: string;
/**
* Indicates the details of html.
*
* @type { ?Record<string, string> }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
details?: Record<string, string>;
}
/**
* Describe system defined app item uniform data struct(this kind of struct is provided and bound to OpenHarmony).
*
* @interface OpenHarmonyAppItem
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
interface OpenHarmonyAppItem {
/**
* Indicates the uniform data type of this data struct.
*
* @type { 'openharmony.app-item' }
* @readonly
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
readonly uniformDataType: 'openharmony.app-item';
/**
* Indicates the app id.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
appId: string;
/**
* Indicates the app name.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
appName: string;
/**
* Indicates the id of app icon.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
appIconId: string;
/**
* Indicates the id of app label.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
appLabelId: string;
/**
* Indicates the bundle name of app.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
bundleName: string;
/**
* Indicates the ability name of app.
*
* @type { string }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
abilityName: string;
/**
* Indicates the details of app.
*
* @type { ?Record<string, number | string | Uint8Array> }
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
* @since 12
*/
details?: Record<string, number | string | Uint8Array>;
}
}
export default uniformDataStruct;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。