mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
feature: add pasteboard interface getMimeTypes
Signed-off-by: Gavin <caiguangwei2@huawei.com>
This commit is contained in:
parent
6f2cfbb06b
commit
ed2d467108
10
api/@ohos.pasteboard.d.ts
vendored
10
api/@ohos.pasteboard.d.ts
vendored
@ -1586,6 +1586,16 @@ declare namespace pasteboard {
|
||||
* @since 13
|
||||
*/
|
||||
detectPatterns(patterns: Array<Pattern>): Promise<Array<Pattern>>;
|
||||
|
||||
/**
|
||||
* Get the MIME types in the pasteboard.
|
||||
*
|
||||
* @returns { Promise<Array<string>> } Promise used to return the MIME types.
|
||||
* @syscap SystemCapability.MiscServices.Pasteboard
|
||||
* @atomicservice
|
||||
* @since 14
|
||||
*/
|
||||
getMimeTypes(): Promise<Array<string>>;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user