操作 | 旧版本 | 新版本 | d.ts文件 |
---|---|---|---|
syscap变更 | 类名:PhotoViewMIMETypes; API声明:IMAGE_TYPE = 'image/*' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:IMAGE_TYPE = 'image/*' 差异内容:SystemCapability.FileManagement.UserFileService |
api/@ohos.file.picker.d.ts |
syscap变更 | 类名:PhotoViewMIMETypes; API声明:VIDEO_TYPE = 'video/*' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:VIDEO_TYPE = 'video/*' 差异内容:SystemCapability.FileManagement.UserFileService |
api/@ohos.file.picker.d.ts |
syscap变更 | 类名:PhotoViewMIMETypes; API声明:IMAGE_VIDEO_TYPE = '/' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:IMAGE_VIDEO_TYPE = '/' 差异内容:SystemCapability.FileManagement.UserFileService |
api/@ohos.file.picker.d.ts |
syscap变更 | 类名:securityLabel; API声明:type DataLevel = 's0' | 's1' | 's2' | 's3' | 's4'; 差异内容:NA |
类名:securityLabel; API声明:type DataLevel = 's0' | 's1' | 's2' | 's3' | 's4'; 差异内容:SystemCapability.FileManagement.File.FileIO |
api/@ohos.file.securityLabel.d.ts |
API废弃版本变更 | 类名:PhotoAsset; API声明:getReadOnlyFd(callback: AsyncCallback<number>): void; 差异内容:NA |
类名:PhotoAsset; API声明:getReadOnlyFd(callback: AsyncCallback<number>): void; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:PhotoAsset; API声明:getReadOnlyFd(): Promise<number>; 差异内容:NA |
类名:PhotoAsset; API声明:getReadOnlyFd(): Promise<number>; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:PhotoAsset; API声明:close(fd: number, callback: AsyncCallback<void>): void; 差异内容:NA |
类名:PhotoAsset; API声明:close(fd: number, callback: AsyncCallback<void>): void; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:PhotoAsset; API声明:close(fd: number): Promise<void>; 差异内容:NA |
类名:PhotoAsset; API声明:close(fd: number): Promise<void>; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:Album; API声明:addAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void; 差异内容:NA |
类名:Album; API声明:addAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:Album; API声明:addAssets(assets: Array<PhotoAsset>): Promise<void>; 差异内容:NA |
类名:Album; API声明:addAssets(assets: Array<PhotoAsset>): Promise<void>; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:Album; API声明:removeAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void; 差异内容:NA |
类名:Album; API声明:removeAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:Album; API声明:removeAssets(assets: Array<PhotoAsset>): Promise<void>; 差异内容:NA |
类名:Album; API声明:removeAssets(assets: Array<PhotoAsset>): Promise<void>; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:PhotoAccessHelper; API声明:createDeleteRequest(uriList: Array<string>, callback: AsyncCallback<void>): void; 差异内容:NA |
类名:PhotoAccessHelper; API声明:createDeleteRequest(uriList: Array<string>, callback: AsyncCallback<void>): void; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
API废弃版本变更 | 类名:PhotoAccessHelper; API声明:createDeleteRequest(uriList: Array<string>): Promise<void>; 差异内容:NA |
类名:PhotoAccessHelper; API声明:createDeleteRequest(uriList: Array<string>): Promise<void>; 差异内容:11 |
api/@ohos.file.photoAccessHelper.d.ts |
函数变更 | 类名:global; API声明:declare function listFile(path: string, options?: { recursion?: boolean; listNum?: number; filter?: Filter; }): Promise<string[]>; 差异内容:options?: { recursion?: boolean; listNum?: number; filter?: Filter; } |
类名:global; API声明:declare function listFile(path: string, options?: ListFileOptions): Promise<string[]>; 差异内容:options?: ListFileOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function listFile(path: string, options: { recursion?: boolean; listNum?: number; filter?: Filter; }, callback: AsyncCallback<string[]>): void; 差异内容:options: { recursion?: boolean; listNum?: number; filter?: Filter; } |
类名:global; API声明:declare function listFile(path: string, options: ListFileOptions, callback: AsyncCallback<string[]>): void; 差异内容:options: ListFileOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function listFileSync(path: string, options?: { recursion?: boolean; listNum?: number; filter?: Filter; }): string[]; 差异内容:options?: { recursion?: boolean; listNum?: number; filter?: Filter; } |
类名:global; API声明:declare function listFileSync(path: string, options?: ListFileOptions): string[]; 差异内容:options?: ListFileOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; } |
类名:global; API声明:declare function read(fd: number, buffer: ArrayBuffer, options?: ReadOptions): Promise<number>; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function read(fd: number, buffer: ArrayBuffer, options: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; } |
类名:global; API声明:declare function read(fd: number, buffer: ArrayBuffer, options: ReadOptions, callback: AsyncCallback<number>): void; 差异内容:options: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; 差异内容:options?: { offset?: number; length?: number; } |
类名:global; API声明:declare function readSync(fd: number, buffer: ArrayBuffer, options?: ReadOptions): number; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function readText(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<string>; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function readText(filePath: string, options?: ReadTextOptions): Promise<string>; 差异内容:options?: ReadTextOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function readText(filePath: string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void; 差异内容:options: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function readText(filePath: string, options: ReadTextOptions, callback: AsyncCallback<string>): void; 差异内容:options: ReadTextOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function readTextSync(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): string; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function readTextSync(filePath: string, options?: ReadTextOptions): string; 差异内容:options?: ReadTextOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function write(fd: number, buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function write(fd: number, buffer: ArrayBuffer | string, options?: WriteOptions): Promise<number>; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function write(fd: number, buffer: ArrayBuffer | string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function write(fd: number, buffer: ArrayBuffer | string, options: WriteOptions, callback: AsyncCallback<number>): void; 差异内容:options: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:global; API声明:declare function writeSync(fd: number, buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): number; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:global; API声明:declare function writeSync(fd: number, buffer: ArrayBuffer | string, options?: WriteOptions): number; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:write(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:RandomAccessFile; API声明:write(buffer: ArrayBuffer | string, options?: WriteOptions): Promise<number>; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:write(buffer: ArrayBuffer | string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; encoding?: string; } |
类名:RandomAccessFile; API声明:write(buffer: ArrayBuffer | string, options: WriteOptions, callback: AsyncCallback<number>): void; 差异内容:options: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:writeSync(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): number; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:RandomAccessFile; API声明:writeSync(buffer: ArrayBuffer | string, options?: WriteOptions): number; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:read(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; } |
类名:RandomAccessFile; API声明:read(buffer: ArrayBuffer, options?: ReadOptions): Promise<number>; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:read(buffer: ArrayBuffer, options: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; } |
类名:RandomAccessFile; API声明:read(buffer: ArrayBuffer, options: ReadOptions, callback: AsyncCallback<number>): void; 差异内容:options: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:RandomAccessFile; API声明:readSync(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; 差异内容:options?: { offset?: number; length?: number; } |
类名:RandomAccessFile; API声明:readSync(buffer: ArrayBuffer, options?: ReadOptions): number; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:write(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:Stream; API声明:write(buffer: ArrayBuffer | string, options?: WriteOptions): Promise<number>; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:write(buffer: ArrayBuffer | string, options: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; encoding?: string; } |
类名:Stream; API声明:write(buffer: ArrayBuffer | string, options: WriteOptions, callback: AsyncCallback<number>): void; 差异内容:options: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:writeSync(buffer: ArrayBuffer | string, options?: { offset?: number; length?: number; encoding?: string; }): number; 差异内容:options?: { offset?: number; length?: number; encoding?: string; } |
类名:Stream; API声明:writeSync(buffer: ArrayBuffer | string, options?: WriteOptions): number; 差异内容:options?: WriteOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:read(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number>; 差异内容:options?: { offset?: number; length?: number; } |
类名:Stream; API声明:read(buffer: ArrayBuffer, options?: ReadOptions): Promise<number>; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:read(buffer: ArrayBuffer, options: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void; 差异内容:options: { offset?: number; length?: number; } |
类名:Stream; API声明:read(buffer: ArrayBuffer, options: ReadOptions, callback: AsyncCallback<number>): void; 差异内容:options: ReadOptions |
api/@ohos.file.fs.d.ts |
函数变更 | 类名:Stream; API声明:readSync(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; 差异内容:options?: { offset?: number; length?: number; } |
类名:Stream; API声明:readSync(buffer: ArrayBuffer, options?: ReadOptions): number; 差异内容:options?: ReadOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function mkdir(path: string, recursion: boolean): Promise<void>; 差异内容:declare function mkdir(path: string, recursion: boolean): Promise<void>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function mkdir(path: string, recursion: boolean, callback: AsyncCallback<void>): void; 差异内容:declare function mkdir(path: string, recursion: boolean, callback: AsyncCallback<void>): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function mkdirSync(path: string, recursion: boolean): void; 差异内容:declare function mkdirSync(path: string, recursion: boolean): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:BackupExtensionAbility; API声明:context: ExtensionContext; 差异内容:context: ExtensionContext; |
api/@ohos.application.BackupExtensionAbility.d.ts |
新增API | NA | 类名:global; API声明: declare namespace cloudSync 差异内容: declare namespace cloudSync |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:cloudSync; API声明: enum State 差异内容: enum State |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:State; API声明:RUNNING 差异内容:RUNNING |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:State; API声明:COMPLETED 差异内容:COMPLETED |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:State; API声明:FAILED 差异内容:FAILED |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:State; API声明:STOPPED 差异内容:STOPPED |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:cloudSync; API声明: enum DownloadErrorType 差异内容: enum DownloadErrorType |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:NO_ERROR 差异内容:NO_ERROR |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:UNKNOWN_ERROR 差异内容:UNKNOWN_ERROR |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:NETWORK_UNAVAILABLE 差异内容:NETWORK_UNAVAILABLE |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:LOCAL_STORAGE_FULL 差异内容:LOCAL_STORAGE_FULL |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:CONTENT_NOT_FOUND 差异内容:CONTENT_NOT_FOUND |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadErrorType; API声明:FREQUENT_USER_REQUESTS 差异内容:FREQUENT_USER_REQUESTS |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:cloudSync; API声明: interface DownloadProgress 差异内容: interface DownloadProgress |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadProgress; API声明:state: State; 差异内容:state: State; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadProgress; API声明:processed: number; 差异内容:processed: number; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadProgress; API声明:size: number; 差异内容:size: number; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadProgress; API声明:uri: string; 差异内容:uri: string; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:DownloadProgress; API声明:error: DownloadErrorType; 差异内容:error: DownloadErrorType; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:cloudSync; API声明: class CloudFileCache 差异内容: class CloudFileCache |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:on(event: 'progress', callback: Callback<DownloadProgress>): void; 差异内容:on(event: 'progress', callback: Callback<DownloadProgress>): void; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:off(event: 'progress', callback?: Callback<DownloadProgress>): void; 差异内容:off(event: 'progress', callback?: Callback<DownloadProgress>): void; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:start(uri: string): Promise<void>; 差异内容:start(uri: string): Promise<void>; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:start(uri: string, callback: AsyncCallback<void>): void; 差异内容:start(uri: string, callback: AsyncCallback<void>): void; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:stop(uri: string): Promise<void>; 差异内容:stop(uri: string): Promise<void>; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:CloudFileCache; API声明:stop(uri: string, callback: AsyncCallback<void>): void; 差异内容:stop(uri: string, callback: AsyncCallback<void>): void; |
api/@ohos.file.cloudSync.d.ts |
新增API | NA | 类名:global; API声明: declare namespace Environment 差异内容: declare namespace Environment |
api/@ohos.file.environment.d.ts |
新增API | NA | 类名:Environment; API声明:function getUserDownloadDir(): string; 差异内容:function getUserDownloadDir(): string; |
api/@ohos.file.environment.d.ts |
新增API | NA | 类名:Environment; API声明:function getUserDesktopDir(): string; 差异内容:function getUserDesktopDir(): string; |
api/@ohos.file.environment.d.ts |
新增API | NA | 类名:Environment; API声明:function getUserDocumentDir(): string; 差异内容:function getUserDocumentDir(): string; |
api/@ohos.file.environment.d.ts |
新增API | NA | 类名:FileUri; API声明:getFullDirectoryUri(): string; 差异内容:getFullDirectoryUri(): string; |
api/@ohos.file.fileuri.d.ts |
新增API | NA | 类名:global; API声明:declare function copy(srcUri: string, destUri: string, options?: CopyOptions): Promise<void>; 差异内容:declare function copy(srcUri: string, destUri: string, options?: CopyOptions): Promise<void>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function copy(srcUri: string, destUri: string, callback: AsyncCallback<void>): void; 差异内容:declare function copy(srcUri: string, destUri: string, callback: AsyncCallback<void>): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function copy(srcUri: string, destUri: string, options: CopyOptions, callback: AsyncCallback<void>): void; 差异内容:declare function copy(srcUri: string, destUri: string, options: CopyOptions, callback: AsyncCallback<void>): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function lseek(fd: number, offset: number, whence?: WhenceType): number; 差异内容:declare function lseek(fd: number, offset: number, whence?: WhenceType): number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function readLines(filePath: string, options?: Options): Promise<ReaderIterator>; 差异内容:declare function readLines(filePath: string, options?: Options): Promise<ReaderIterator>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function readLines(filePath: string, callback: AsyncCallback<ReaderIterator>): void; 差异内容:declare function readLines(filePath: string, callback: AsyncCallback<ReaderIterator>): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function readLines(filePath: string, options: Options, callback: AsyncCallback<ReaderIterator>): void; 差异内容:declare function readLines(filePath: string, options: Options, callback: AsyncCallback<ReaderIterator>): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function readLinesSync(filePath: string, options?: Options): ReaderIterator; 差异内容:declare function readLinesSync(filePath: string, options?: Options): ReaderIterator; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:declare function utimes(path: string, mtime: number): void; 差异内容:declare function utimes(path: string, mtime: number): void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: interface Progress 差异内容: interface Progress |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Progress; API声明:readonly processedSize: number; 差异内容:readonly processedSize: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Progress; API声明:readonly totalSize: number; 差异内容:readonly totalSize: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: interface CopyOptions 差异内容: interface CopyOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:CopyOptions; API声明:progressListener?: ProgressListener; 差异内容:progressListener?: ProgressListener; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明:type ProgressListener = (progress: Progress) => void; 差异内容:type ProgressListener = (progress: Progress) => void; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:File; API声明:getParent(): string; 差异内容:getParent(): string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Stat; API声明:readonly location: LocationType; 差异内容:readonly location: LocationType; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface ReaderIteratorResult 差异内容: export interface ReaderIteratorResult |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReaderIteratorResult; API声明:done: boolean; 差异内容:done: boolean; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReaderIteratorResult; API声明:value: string; 差异内容:value: string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: declare interface ReaderIterator 差异内容: declare interface ReaderIterator |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReaderIterator; API声明:next(): ReaderIteratorResult; 差异内容:next(): ReaderIteratorResult; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:suffix?: Array<string>; 差异内容:suffix?: Array<string>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:displayName?: Array<string>; 差异内容:displayName?: Array<string>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:mimeType?: Array<string>; 差异内容:mimeType?: Array<string>; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:fileSizeOver?: number; 差异内容:fileSizeOver?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:lastModifiedAfter?: number; 差异内容:lastModifiedAfter?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Filter; API声明:excludeMedia?: boolean; 差异内容:excludeMedia?: boolean; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ConflictFiles; API声明:srcFile: string; 差异内容:srcFile: string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ConflictFiles; API声明:destFile: string; 差异内容:destFile: string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface Options 差异内容: export interface Options |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:Options; API声明:encoding?: string; 差异内容:encoding?: string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface ReadOptions 差异内容: export interface ReadOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReadOptions; API声明:offset?: number; 差异内容:offset?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReadOptions; API声明:length?: number; 差异内容:length?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface ReadTextOptions 差异内容: export interface ReadTextOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ReadTextOptions; API声明:encoding?: string; 差异内容:encoding?: string; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface WriteOptions 差异内容: export interface WriteOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:WriteOptions; API声明:offset?: number; 差异内容:offset?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:WriteOptions; API声明:length?: number; 差异内容:length?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: export interface ListFileOptions 差异内容: export interface ListFileOptions |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ListFileOptions; API声明:recursion?: boolean; 差异内容:recursion?: boolean; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ListFileOptions; API声明:listNum?: number; 差异内容:listNum?: number; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:ListFileOptions; API声明:filter?: Filter; 差异内容:filter?: Filter; |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: declare enum WhenceType 差异内容: declare enum WhenceType |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:WhenceType; API声明:SEEK_SET = 0 差异内容:SEEK_SET = 0 |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:WhenceType; API声明:SEEK_CUR = 1 差异内容:SEEK_CUR = 1 |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:WhenceType; API声明:SEEK_END = 2 差异内容:SEEK_END = 2 |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:global; API声明: declare enum LocationType 差异内容: declare enum LocationType |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:LocationType; API声明:LOCAL = 1 << 0 差异内容:LOCAL = 1 << 0 |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:LocationType; API声明:CLOUD = 1 << 1 差异内容:CLOUD = 1 << 1 |
api/@ohos.file.fs.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: enum RecommendationType 差异内容: enum RecommendationType |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationType; API声明:QR_OR_BAR_CODE = 1 差异内容:QR_OR_BAR_CODE = 1 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationType; API声明:QR_CODE = 2 差异内容:QR_CODE = 2 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationType; API声明:BAR_CODE = 3 差异内容:BAR_CODE = 3 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationType; API声明:ID_CARD = 4 差异内容:ID_CARD = 4 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationType; API声明:PROFILE_PICTURE = 5 差异内容:PROFILE_PICTURE = 5 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: enum DeliveryMode 差异内容: enum DeliveryMode |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:DeliveryMode; API声明:FAST_MODE = 0 差异内容:FAST_MODE = 0 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:DeliveryMode; API声明:HIGH_QUALITY_MODE = 1 差异内容:HIGH_QUALITY_MODE = 1 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:DeliveryMode; API声明:BALANCE_MODE = 2 差异内容:BALANCE_MODE = 2 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: interface RequestOptions 差异内容: interface RequestOptions |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RequestOptions; API声明:deliveryMode: DeliveryMode; 差异内容:deliveryMode: DeliveryMode; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: interface MediaAssetDataHandler 差异内容: interface MediaAssetDataHandler |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetDataHandler; API声明:onDataPrepared(data: T): void; 差异内容:onDataPrepared(data: T): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: class MediaAssetManager 差异内容: class MediaAssetManager |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetManager; API声明:static requestImage(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<image.ImageSource>): Promise<string>; 差异内容:static requestImage(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<image.ImageSource>): Promise<string>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetManager; API声明:static requestImageData(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<ArrayBuffer>): Promise<string>; 差异内容:static requestImageData(context: Context, asset: PhotoAsset, requestOptions: RequestOptions, dataHandler: MediaAssetDataHandler<ArrayBuffer>): Promise<string>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:Album; API声明:readonly imageCount?: number; 差异内容:readonly imageCount?: number; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:Album; API声明:readonly videoCount?: number; 差异内容:readonly videoCount?: number; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoAccessHelper; API声明:applyChanges(mediaChangeRequest: MediaChangeRequest): Promise<void>; 差异内容:applyChanges(mediaChangeRequest: MediaChangeRequest): Promise<void>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoSelectOptions; API声明:isSearchSupported?: boolean; 差异内容:isSearchSupported?: boolean; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoSelectOptions; API声明:isPhotoTakingSupported?: boolean; 差异内容:isPhotoTakingSupported?: boolean; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoSelectOptions; API声明:isEditSupported?: boolean; 差异内容:isEditSupported?: boolean; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoSelectOptions; API声明:recommendationOptions?: RecommendationOptions; 差异内容:recommendationOptions?: RecommendationOptions; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:PhotoSelectOptions; API声明:preselectedUris?: Array<string>; 差异内容:preselectedUris?: Array<string>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: class RecommendationOptions 差异内容: class RecommendationOptions |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:RecommendationOptions; API声明:recommendationType?: RecommendationType; 差异内容:recommendationType?: RecommendationType; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: enum ResourceType 差异内容: enum ResourceType |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:ResourceType; API声明:IMAGE_RESOURCE = 1 差异内容:IMAGE_RESOURCE = 1 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:ResourceType; API声明:VIDEO_RESOURCE = 2 差异内容:VIDEO_RESOURCE = 2 |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: interface MediaChangeRequest 差异内容: interface MediaChangeRequest |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: class MediaAssetChangeRequest 差异内容: class MediaAssetChangeRequest |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:static createImageAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest; 差异内容:static createImageAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:static createVideoAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest; 差异内容:static createVideoAssetRequest(context: Context, fileUri: string): MediaAssetChangeRequest; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:static createAssetRequest(context: Context, photoType: PhotoType, extension: string, options?: CreateOptions): MediaAssetChangeRequest; 差异内容:static createAssetRequest(context: Context, photoType: PhotoType, extension: string, options?: CreateOptions): MediaAssetChangeRequest; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:static deleteAssets(context: Context, assets: Array<PhotoAsset>): Promise<void>; 差异内容:static deleteAssets(context: Context, assets: Array<PhotoAsset>): Promise<void>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:static deleteAssets(context: Context, uriList: Array<string>): Promise<void>; 差异内容:static deleteAssets(context: Context, uriList: Array<string>): Promise<void>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:getAsset(): PhotoAsset; 差异内容:getAsset(): PhotoAsset; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:setTitle(title: string): void; 差异内容:setTitle(title: string): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:getWriteCacheHandler(): Promise<number>; 差异内容:getWriteCacheHandler(): Promise<number>; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:addResource(type: ResourceType, fileUri: string): void; 差异内容:addResource(type: ResourceType, fileUri: string): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAssetChangeRequest; API声明:addResource(type: ResourceType, data: ArrayBuffer): void; 差异内容:addResource(type: ResourceType, data: ArrayBuffer): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:photoAccessHelper; API声明: class MediaAlbumChangeRequest 差异内容: class MediaAlbumChangeRequest |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAlbumChangeRequest; API声明:getAlbum(): Album; 差异内容:getAlbum(): Album; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAlbumChangeRequest; API声明:setAlbumName(name: string): void; 差异内容:setAlbumName(name: string): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAlbumChangeRequest; API声明:addAssets(assets: Array<PhotoAsset>): void; 差异内容:addAssets(assets: Array<PhotoAsset>): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:MediaAlbumChangeRequest; API声明:removeAssets(assets: Array<PhotoAsset>): void; 差异内容:removeAssets(assets: Array<PhotoAsset>): void; |
api/@ohos.file.photoAccessHelper.d.ts |
新增API | NA | 类名:picker; API声明: export enum DocumentSelectMode 差异内容: export enum DocumentSelectMode |
api/@ohos.file.picker.d.ts |
新增API | NA | 类名:DocumentSelectMode; API声明:FILE = 0 差异内容:FILE = 0 |
api/@ohos.file.picker.d.ts |
新增API | NA | 类名:DocumentSelectMode; API声明:FOLDER = 1 差异内容:FOLDER = 1 |
api/@ohos.file.picker.d.ts |
新增API | NA | 类名:DocumentSelectMode; API声明:MIXED = 2 差异内容:MIXED = 2 |
api/@ohos.file.picker.d.ts |
新增API | NA | 类名:DocumentSelectOptions; API声明:selectMode?: DocumentSelectMode; 差异内容:selectMode?: DocumentSelectMode; |
api/@ohos.file.picker.d.ts |
新增API | NA | 类名:fileShare; API声明: export enum OperationMode 差异内容: export enum OperationMode |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:OperationMode; API声明:READ_MODE = 0b1 差异内容:READ_MODE = 0b1 |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:OperationMode; API声明:WRITE_MODE = 0b10 差异内容:WRITE_MODE = 0b10 |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明: export enum PolicyErrorCode 差异内容: export enum PolicyErrorCode |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:PolicyErrorCode; API声明:PERSISTENCE_FORBIDDEN = 1 差异内容:PERSISTENCE_FORBIDDEN = 1 |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:PolicyErrorCode; API声明:INVALID_MODE = 2 差异内容:INVALID_MODE = 2 |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:PolicyErrorCode; API声明:INVALID_PATH = 3 差异内容:INVALID_PATH = 3 |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明:export type PolicyErrorResult = { / * Indicates the failed uri of the policy information. * * @type { string } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ uri: string; / * Indicates the error code of the failure in the policy information. * * @type { PolicyErrorCode } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ code: PolicyErrorCode; / * Indicates the reason of the failure in the policy information. * * @type { string } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ message: string; }; 差异内容:export type PolicyErrorResult = { / * Indicates the failed uri of the policy information. * * @type { string } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ uri: string; / * Indicates the error code of the failure in the policy information. * * @type { PolicyErrorCode } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ code: PolicyErrorCode; / * Indicates the reason of the failure in the policy information. * * @type { string } * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization * @since 11 */ message: string; }; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明: export interface PolicyInfo 差异内容: export interface PolicyInfo |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:PolicyInfo; API声明:uri: string; 差异内容:uri: string; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:PolicyInfo; API声明:operationMode: number; 差异内容:operationMode: number; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明:function persistPermission(policies: Array<PolicyInfo>): Promise<void>; 差异内容:function persistPermission(policies: Array<PolicyInfo>): Promise<void>; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明:function revokePermission(policies: Array<PolicyInfo>): Promise<void>; 差异内容:function revokePermission(policies: Array<PolicyInfo>): Promise<void>; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明:function activatePermission(policies: Array<PolicyInfo>): Promise<void>; 差异内容:function activatePermission(policies: Array<PolicyInfo>): Promise<void>; |
api/@ohos.fileshare.d.ts |
新增API | NA | 类名:fileShare; API声明:function deactivatePermission(policies: Array<PolicyInfo>): Promise<void>; 差异内容:function deactivatePermission(policies: Array<PolicyInfo>): Promise<void>; |
api/@ohos.fileshare.d.ts |
起始版本有变化 | 类名:PhotoViewMIMETypes; API声明:IMAGE_TYPE = 'image/*' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:IMAGE_TYPE = 'image/*' 差异内容:9 |
api/@ohos.file.picker.d.ts |
起始版本有变化 | 类名:PhotoViewMIMETypes; API声明:VIDEO_TYPE = 'video/*' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:VIDEO_TYPE = 'video/*' 差异内容:9 |
api/@ohos.file.picker.d.ts |
起始版本有变化 | 类名:PhotoViewMIMETypes; API声明:IMAGE_VIDEO_TYPE = '/' 差异内容:NA |
类名:PhotoViewMIMETypes; API声明:IMAGE_VIDEO_TYPE = '/' 差异内容:9 |
api/@ohos.file.picker.d.ts |
起始版本有变化 | 类名:securityLabel; API声明:type DataLevel = 's0' | 's1' | 's2' | 's3' | 's4'; 差异内容:NA |
类名:securityLabel; API声明:type DataLevel = 's0' | 's1' | 's2' | 's3' | 's4'; 差异内容:9 |
api/@ohos.file.securityLabel.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.application.BackupExtensionAbility.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.document.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.cloudSyncManager.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.fileAccess.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.fileuri.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.fs.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.hash.d.ts |
kit变更 | NA | MediaLibraryKit | api/@ohos.file.photoAccessHelper.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.picker.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.securityLabel.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.statvfs.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.file.storageStatistics.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.fileio.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.fileshare.d.ts |
kit变更 | NA | CoreFileKit | api/@ohos.statfs.d.ts |
kit变更 | NA | CoreFileKit | api/@system.file.d.ts |