mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
udmf dts update crossplatform
Signed-off-by: quguiren <quguiren@huawei.com>
This commit is contained in:
parent
6f2cfbb06b
commit
44f38c6eca
72
api/@ohos.data.unifiedDataChannel.d.ts
vendored
72
api/@ohos.data.unifiedDataChannel.d.ts
vendored
@ -44,7 +44,7 @@ import Want from "./@ohos.app.ability.Want";
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
declare namespace unifiedDataChannel {
|
||||
/**
|
||||
@ -96,7 +96,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
type ValueType = number | string | boolean | image.PixelMap | Want | ArrayBuffer | object | null | undefined;
|
||||
|
||||
@ -173,7 +173,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class UnifiedData {
|
||||
/**
|
||||
@ -204,7 +204,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
constructor(record: UnifiedRecord);
|
||||
/**
|
||||
@ -220,7 +220,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
constructor();
|
||||
/**
|
||||
@ -251,7 +251,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
addRecord(record: UnifiedRecord): void;
|
||||
/**
|
||||
@ -276,7 +276,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
getRecords(): Array<UnifiedRecord>;
|
||||
|
||||
@ -299,7 +299,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
hasType(type: string): boolean;
|
||||
|
||||
@ -316,7 +316,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
getTypes(): Array<string>;
|
||||
|
||||
@ -395,7 +395,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class UnifiedRecord {
|
||||
/**
|
||||
@ -420,7 +420,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
getType(): string;
|
||||
|
||||
@ -437,7 +437,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
constructor();
|
||||
|
||||
@ -464,7 +464,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
constructor(type: string, value: ValueType);
|
||||
|
||||
@ -483,7 +483,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
getValue(): ValueType;
|
||||
}
|
||||
@ -510,7 +510,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Text extends UnifiedRecord {
|
||||
/**
|
||||
@ -534,7 +534,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
details?: Record<string, string>;
|
||||
}
|
||||
@ -561,7 +561,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class PlainText extends Text {
|
||||
/**
|
||||
@ -585,7 +585,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
textContent: string;
|
||||
/**
|
||||
@ -609,7 +609,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
abstract?: string;
|
||||
}
|
||||
@ -636,7 +636,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Hyperlink extends Text {
|
||||
/**
|
||||
@ -660,7 +660,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
@ -684,7 +684,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
description?: string;
|
||||
}
|
||||
@ -711,7 +711,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class HTML extends Text {
|
||||
/**
|
||||
@ -735,7 +735,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
htmlContent: string;
|
||||
/**
|
||||
@ -759,7 +759,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
plainContent?: string;
|
||||
}
|
||||
@ -786,7 +786,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class File extends UnifiedRecord {
|
||||
/**
|
||||
@ -810,7 +810,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
details?: Record<string, string>;
|
||||
/**
|
||||
@ -834,7 +834,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
uri: string;
|
||||
}
|
||||
@ -861,7 +861,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Image extends File {
|
||||
/**
|
||||
@ -885,7 +885,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
imageUri: string;
|
||||
}
|
||||
@ -912,7 +912,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Video extends File {
|
||||
/**
|
||||
@ -936,7 +936,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
videoUri: string;
|
||||
}
|
||||
@ -963,7 +963,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Audio extends File {
|
||||
/**
|
||||
@ -987,7 +987,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
audioUri: string;
|
||||
}
|
||||
@ -1014,7 +1014,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
class Folder extends File {
|
||||
/**
|
||||
@ -1038,7 +1038,7 @@ declare namespace unifiedDataChannel {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
folderUri: string;
|
||||
}
|
||||
|
24
api/@ohos.data.uniformTypeDescriptor.d.ts
vendored
24
api/@ohos.data.uniformTypeDescriptor.d.ts
vendored
@ -40,7 +40,7 @@
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
declare namespace uniformTypeDescriptor {
|
||||
/**
|
||||
@ -65,7 +65,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
enum UniformDataType {
|
||||
/**
|
||||
@ -111,7 +111,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
TEXT = 'general.text',
|
||||
|
||||
@ -134,7 +134,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
PLAIN_TEXT = 'general.plain-text',
|
||||
|
||||
@ -157,7 +157,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
HTML = 'general.html',
|
||||
|
||||
@ -180,7 +180,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
HYPERLINK = 'general.hyperlink',
|
||||
|
||||
@ -475,7 +475,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
IMAGE = 'general.image',
|
||||
|
||||
@ -722,7 +722,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
VIDEO = 'general.video',
|
||||
|
||||
@ -865,7 +865,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
AUDIO = 'general.audio',
|
||||
|
||||
@ -1048,7 +1048,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
FILE = 'general.file',
|
||||
|
||||
@ -1079,7 +1079,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
FOLDER = 'general.folder',
|
||||
|
||||
@ -1548,7 +1548,7 @@ declare namespace uniformTypeDescriptor {
|
||||
* @syscap SystemCapability.DistributedDataManager.UDMF.Core
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 13
|
||||
* @since 14
|
||||
*/
|
||||
OPENHARMONY_PIXEL_MAP = 'openharmony.pixel-map',
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user