!12762 picker新增getSelectedIndex接口

Merge pull request !12762 from zhouoaoteng/master
This commit is contained in:
openharmony_ci 2024-07-22 02:59:25 +00:00 committed by Gitee
commit e9c4e95ba0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -757,6 +757,17 @@ declare namespace picker {
* @since 12
*/
save(callback: AsyncCallback<Array<string>>): void;
/**
* Obtain the saving type selected by the user.
*
* @returns { number } Returns the index of the suffix array fileSuffixChoices configured by the user in DocumentSaveOptions.
* @syscap SystemCapability.FileManagement.UserFileService
* @crossplatform
* @atomicservice
* @since 12
*/
getSelectedIndex(): number;
}
/**