!13561 DocumentViewPicker新增可传入window的构造方法

Merge pull request !13561 from BrainL/windowMst
This commit is contained in:
openharmony_ci 2024-09-18 04:27:57 +00:00 committed by Gitee
commit 9f46acf403
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -20,7 +20,7 @@
import { AsyncCallback, Callback } from './@ohos.base';
import Context from './application/Context';
import { window } from '@kit.ArkUI';
/**
* Provide the capabilities to use different pickers.
*
@ -666,6 +666,16 @@ declare namespace picker {
*/
constructor(context: Context);
/**
* The constructor used to create a DocumentViewPicker object.
*
* @param { Context } context - represents the context.
* @param { window.Window } window - represents the window.
* @syscap SystemCapability.FileManagement.UserFileService
* @since 13
*/
constructor(context: Context, window: window.Window);
/**
* Pull up the document picker based on the selection mode.
*