feature: add pasteboard interface getMimeTypes

Signed-off-by: Gavin <caiguangwei2@huawei.com>
This commit is contained in:
Gavin 2024-11-01 14:35:03 +08:00
parent 6f2cfbb06b
commit ed2d467108

View File

@ -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>>;
}
}