操作 旧版本 新版本 d.ts文件
新增 NA 类名:RandomAccessFile;
方法or属性:readonly fd: number;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:write(buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:write(
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:read(
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
@ohos.file.fs.d.ts
新增 NA 类名:DocumentSelectOptions;
方法or属性:maxSelectNumber?: number;
@ohos.file.picker.d.ts
新增 NA 类名:BundleVersion;
方法or属性:code: number;
@ohos.application.BackupExtensionAbility.d.ts
新增 NA 类名:BundleVersion;
方法or属性:name: string;
@ohos.application.BackupExtensionAbility.d.ts
新增 NA 类名:BackupExtensionAbility;
方法or属性:onBackup(): void;
@ohos.application.BackupExtensionAbility.d.ts
新增 NA 类名:BackupExtensionAbility;
方法or属性:onRestore(bundleVersion: BundleVersion): void;
@ohos.application.BackupExtensionAbility.d.ts
新增 NA 类名:backup;
方法or属性:function getLocalCapabilities(): Promise<FileData>;
@ohos.file.backup.d.ts
新增 NA 类名:backup;
方法or属性:function getLocalCapabilities(callback: AsyncCallback<FileData>): void;
@ohos.file.backup.d.ts
新增 NA 类名:FileMeta;
方法or属性:bundleName: string;
@ohos.file.backup.d.ts
新增 NA 类名:FileMeta;
方法or属性:uri: string;
@ohos.file.backup.d.ts
新增 NA 类名:FileData;
方法or属性:fd: number;
@ohos.file.backup.d.ts
新增 NA 类名:GeneralCallbacks;
方法or属性:onFileReady: AsyncCallback<File>;
@ohos.file.backup.d.ts
新增 NA 类名:GeneralCallbacks;
方法or属性:onBundleBegin: AsyncCallback<string>;
@ohos.file.backup.d.ts
新增 NA 类名:GeneralCallbacks;
方法or属性:onBundleEnd: AsyncCallback<string>;
@ohos.file.backup.d.ts
新增 NA 类名:GeneralCallbacks;
方法or属性:onAllBundlesEnd: AsyncCallback<undefined>;
@ohos.file.backup.d.ts
新增 NA 类名:GeneralCallbacks;
方法or属性:onBackupServiceDied: Callback<undefined>;
@ohos.file.backup.d.ts
新增 NA 类名:SessionBackup;
方法or属性:constructor(callbacks: GeneralCallbacks);
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:constructor(callbacks: GeneralCallbacks);
@ohos.file.backup.d.ts
新增 NA 类名:SessionBackup;
方法or属性:appendBundles(bundlesToBackup: string[]): Promise<void>;
@ohos.file.backup.d.ts
新增 NA 类名:SessionBackup;
方法or属性:appendBundles(bundlesToBackup: string[], callback: AsyncCallback<void>): void;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:appendBundles(remoteCapabilitiesFd: number, bundlesToBackup: string[]): Promise<void>;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:appendBundles(remoteCapabilitiesFd: number, bundlesToBackup: string[], callback: AsyncCallback<void>): void;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:publishFile(fileMeta: FileMeta): Promise<void>;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:publishFile(fileMeta: FileMeta, callback: AsyncCallback<void>): void;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:getFileHandle(fileMeta: FileMeta): Promise<void>;
@ohos.file.backup.d.ts
新增 NA 类名:SessionRestore;
方法or属性:getFileHandle(fileMeta: FileMeta, callback: AsyncCallback<void>): void;
@ohos.file.backup.d.ts
新增 NA 类名:SyncState;
方法or属性:UPLOADING
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncState;
方法or属性:UPLOAD_FAILED
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncState;
方法or属性:DOWNLOADING
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncState;
方法or属性:DOWNLOAD_FAILED
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncState;
方法or属性:COMPLETED
@ohos.file.cloudSync.d.ts
新增 NA 类名:State;
方法or属性:COMPLETED
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncState;
方法or属性:STOPPED
@ohos.file.cloudSync.d.ts
新增 NA 类名:State;
方法or属性:STOPPED
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:NO_ERROR
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:NETWORK_UNAVAILABLE
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:WIFI_UNAVAILABLE
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:BATTERY_LEVEL_LOW
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:BATTERY_LEVEL_WARNING
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:CLOUD_STORAGE_FULL
@ohos.file.cloudSync.d.ts
新增 NA 类名:ErrorType;
方法or属性:LOCAL_STORAGE_FULL
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncProgress;
方法or属性:state: SyncState;
@ohos.file.cloudSync.d.ts
新增 NA 类名:SyncProgress;
方法or属性:error: ErrorType;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:constructor();
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:constructor();
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:on(evt: 'progress', callback: (pg: SyncProgress) => void): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:off(evt: 'progress', callback: (pg: SyncProgress) => void): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:off(evt: 'progress'): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:off(evt: 'progress'): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:start(): Promise<void>;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:start(callback: AsyncCallback<void>): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:stop(): Promise<void>;
@ohos.file.cloudSync.d.ts
新增 NA 类名:GallerySync;
方法or属性:stop(callback: AsyncCallback<void>): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:State;
方法or属性:RUNNING
@ohos.file.cloudSync.d.ts
新增 NA 类名:State;
方法or属性:FAILED
@ohos.file.cloudSync.d.ts
新增 NA 类名:DownloadProgress;
方法or属性:state: State;
@ohos.file.cloudSync.d.ts
新增 NA 类名:DownloadProgress;
方法or属性:processed: number;
@ohos.file.cloudSync.d.ts
新增 NA 类名:DownloadProgress;
方法or属性:size: number;
@ohos.file.cloudSync.d.ts
新增 NA 类名:DownloadProgress;
方法or属性:uri: string;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:on(evt: 'progress', callback: (pg: DownloadProgress) => void): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:off(evt: 'progress', callback: (pg: DownloadProgress) => void): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:start(uri: string): Promise<void>;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:start(uri: string, callback: AsyncCallback<void>): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:stop(uri: string): Promise<void>;
@ohos.file.cloudSync.d.ts
新增 NA 类名:Download;
方法or属性:stop(uri: string, callback: AsyncCallback<void>): void;
@ohos.file.cloudSync.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function changeAppCloudSwitch(accountId: string, bundleName: string, status: boolean): Promise<void>;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function changeAppCloudSwitch(
accountId: string,
bundleName: string,
status: boolean,
callback: AsyncCallback<void>
): void;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function notifyDataChange(accountId: string, bundleName: string): Promise<void>;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function notifyDataChange(accountId: string, bundleName: string, callback: AsyncCallback<void>): void;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function enableCloud(accountId: string, switches: { [bundleName: string]: boolean }): Promise<void>;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function enableCloud(
accountId: string,
switches: { [bundleName: string]: boolean },
callback: AsyncCallback<void>
): void;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function disableCloud(accountId: string): Promise<void>;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function disableCloud(accountId: string, callback: AsyncCallback<void>): void;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function clean(accountId: string, appActions: { [bundleName: string]: Action }): Promise<void>;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:cloudSyncManager;
方法or属性:function clean(accountId: string, appActions: { [bundleName: string]: Action }, callback: AsyncCallback<void>): void;
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:Action;
方法or属性:RETAIN_DATA
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:Action;
方法or属性:CLEAR_DATA
@ohos.file.cloudSyncManager.d.ts
新增 NA 类名:FileInfo;
方法or属性:relativePath: string;
@ohos.file.fileAccess.d.ts
新增 NA 类名:RootInfo;
方法or属性:relativePath: string;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileKey;
方法or属性:DISPLAY_NAME = 'display_name'
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileKey;
方法or属性:DATE_ADDED = 'date_added'
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileKey;
方法or属性:DATE_MODIFIED = 'date_modified'
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileKey;
方法or属性:RELATIVE_PATH = 'relative_path'
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileKey;
方法or属性:FILE_SIZE = 'size'
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ADD
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_DELETE
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_MOVED_TO
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_MOVED_FROM
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_MOVE_SELF
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyMessage;
方法or属性:type: NotifyType;
@ohos.file.fileAccess.d.ts
新增 NA 类名:NotifyMessage;
方法or属性:uris: Array<string>;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:copy(sourceUri: string, destUri: string, force?: boolean): Promise<Array<CopyResult>>;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:copy(sourceUri: string, destUri: string, callback: AsyncCallback<Array<CopyResult>>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:copy(sourceUri: string, destUri: string, force: boolean, callback: AsyncCallback<Array<CopyResult>>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:query(uri: string, metaJson: string): Promise<string>;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:query(uri: string, metaJson: string, callback: AsyncCallback<string>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:getFileInfoFromUri(uri: string): Promise<FileInfo>;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:getFileInfoFromUri(uri: string, callback: AsyncCallback<FileInfo>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:getFileInfoFromRelativePath(relativePath: string): Promise<FileInfo>;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:getFileInfoFromRelativePath(relativePath: string, callback: AsyncCallback<FileInfo>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:registerObserver(uri: string, notifyForDescendants: boolean, callback: Callback<NotifyMessage>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileAccessHelper;
方法or属性:unregisterObserver(uri: string, callback?: Callback<NotifyMessage>): void;
@ohos.file.fileAccess.d.ts
新增 NA 类名:FileUri;
方法or属性:constructor(uriOrPath: string);
@ohos.file.fileuri.d.ts
新增 NA 类名:FileUri;
方法or属性:readonly name: string;
@ohos.file.fileuri.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDir(src: string, dest: string, mode?: number): Promise<void>;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDir(src: string, dest: string, callback: AsyncCallback<void>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDir(src: string, dest: string, callback: AsyncCallback<void, Array<ConflictFiles>>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDir(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDir(src: string, dest: string, mode: number, callback: AsyncCallback<void, Array<ConflictFiles>>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function copyDirSync(src: string, dest: string, mode?: number): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function createRandomAccessFile(file: string | File, mode?: number): Promise<RandomAccessFile>;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function createRandomAccessFile(file: string | File, callback: AsyncCallback<RandomAccessFile>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function createRandomAccessFile(file: string | File, mode: number, callback: AsyncCallback<RandomAccessFile>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function createRandomAccessFileSync(file: string | File, mode?: number): RandomAccessFile;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function createWatcher(path: string, events: number, listener: WatchEventListener): Watcher;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function dup(fd: number): File;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDir(src: string, dest: string, mode?: number): Promise<void>;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDir(src: string, dest: string, callback: AsyncCallback<void>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDir(src: string, dest: string, callback: AsyncCallback<void, Array<ConflictFiles>>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDir(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDir(src: string, dest: string, mode: number, callback: AsyncCallback<void, Array<ConflictFiles>>): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:declare function moveDirSync(src: string, dest: string, mode?: number): void;
@ohos.file.fs.d.ts
新增 NA 类名:sourcefile;
方法or属性:export type ConflictFiles = {
/
* @type { string }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
srcFile: string;

/

* @type { string }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
destFile: string;
};
@ohos.file.fs.d.ts
新增 NA 类名:File;
方法or属性:readonly path: string;
@ohos.file.fs.d.ts
新增 NA 类名:File;
方法or属性:readonly name: string;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:readonly filePointer: number;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:setFilePointer(filePointer: number): void;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:close(): void;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:write(
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): Promise<number>;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:writeSync(
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): number;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:read(
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): Promise<number>;
@ohos.file.fs.d.ts
新增 NA 类名:RandomAccessFile;
方法or属性:readSync(
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): number;
@ohos.file.fs.d.ts
新增 NA 类名:WatchEventListener;
方法or属性:(event: WatchEvent): void;
@ohos.file.fs.d.ts
新增 NA 类名:WatchEvent;
方法or属性:readonly fileName: string;
@ohos.file.fs.d.ts
新增 NA 类名:WatchEvent;
方法or属性:readonly event: number;
@ohos.file.fs.d.ts
新增 NA 类名:WatchEvent;
方法or属性:readonly cookie: number;
@ohos.file.fs.d.ts
新增 NA 类名:Watcher;
方法or属性:start(): void;
@ohos.file.fs.d.ts
新增 NA 类名:Watcher;
方法or属性:stop(): void;
@ohos.file.fs.d.ts
新增 NA 类名:photoAccessHelper;
方法or属性:function getPhotoAccessHelper(context: Context): PhotoAccessHelper;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:photoAccessHelper;
方法or属性:type MemberType = number | string | boolean;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoType;
方法or属性:IMAGE = 1
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoType;
方法or属性:VIDEO
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:VIDEO
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSubtype;
方法or属性:DEFAULT
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSubtype;
方法or属性:SCREENSHOT
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:SCREENSHOT
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PositionType;
方法or属性:LOCAL = 1 << 0
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PositionType;
方法or属性:CLOUD = 1 << 1
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:readonly uri: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:readonly photoType: PhotoType;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:readonly displayName: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:get(member: string): MemberType;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:set(member: string, value: string): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:commitModify(callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:commitModify(callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:commitModify(): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:commitModify(): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:open(mode: string, callback: AsyncCallback<number>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:open(mode: string): Promise<number>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getReadOnlyFd(callback: AsyncCallback<number>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getReadOnlyFd(): Promise<number>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:close(fd: number, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:close(fd: number): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getThumbnail(callback: AsyncCallback<image.PixelMap>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getThumbnail(size: image.Size, callback: AsyncCallback<image.PixelMap>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getThumbnail(size?: image.Size): Promise<image.PixelMap>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setFavorite(favoriteState: boolean, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setFavorite(favoriteState: boolean): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setHidden(hiddenState: boolean, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setHidden(hiddenState: boolean): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setUserComment(userComment: string, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:setUserComment(userComment: string): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getExif(callback: AsyncCallback<string>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAsset;
方法or属性:getExif(): Promise<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:URI = 'uri'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumKeys;
方法or属性:URI = 'uri'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:PHOTO_TYPE = 'media_type'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DISPLAY_NAME = 'display_name'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:SIZE = 'size'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DATE_ADDED = 'date_added'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DATE_MODIFIED = 'date_modified'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DURATION = 'duration'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:WIDTH = 'width'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:HEIGHT = 'height'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DATE_TAKEN = 'date_taken'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:ORIENTATION = 'orientation'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:FAVORITE = 'is_favorite'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:TITLE = 'title'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:POSITION = 'position'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:DATE_TRASHED = 'date_trashed'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:HIDDEN = 'hidden'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:USER_COMMENT = 'user_comment'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoKeys;
方法or属性:CAMERA_SHOT_KEY = 'camera_shot_key'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumKeys;
方法or属性:ALBUM_NAME = 'album_name'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchOptions;
方法or属性:fetchColumns: Array<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchOptions;
方法or属性:predicates: dataSharePredicates.DataSharePredicates;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoCreateOptions;
方法or属性:subtype?: PhotoSubtype;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoCreateOptions;
方法or属性:cameraShotKey?: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:CreateOptions;
方法or属性:title?: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getCount(): number;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:isAfterLast(): boolean;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getFirstObject(callback: AsyncCallback<T>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getFirstObject(): Promise<T>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getNextObject(callback: AsyncCallback<T>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getNextObject(): Promise<T>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getLastObject(callback: AsyncCallback<T>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getLastObject(): Promise<T>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getObjectByPosition(index: number, callback: AsyncCallback<T>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getObjectByPosition(index: number): Promise<T>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getAllObjects(callback: AsyncCallback<Array<T>>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:getAllObjects(): Promise<Array<T>>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:FetchResult;
方法or属性:close(): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumType;
方法or属性:USER = 0
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumType;
方法or属性:SYSTEM = 1024
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:USER_GENERIC = 1
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:FAVORITE = 1025
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:HIDDEN
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:TRASH
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:CAMERA
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AlbumSubtype;
方法or属性:ANY = 2147483647
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly albumType: AlbumType;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly albumSubtype: AlbumSubtype;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:albumName: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly albumUri: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly count: number;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly coverUri: string;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:getAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<PhotoAsset>>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<PhotoAsset>>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:getAssets(options: FetchOptions): Promise<FetchResult<PhotoAsset>>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getAssets(options: FetchOptions): Promise<FetchResult<PhotoAsset>>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:addAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:addAssets(assets: Array<PhotoAsset>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:removeAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:removeAssets(assets: Array<PhotoAsset>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:recoverAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:recoverAssets(assets: Array<PhotoAsset>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:deleteAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:deleteAssets(assets: Array<PhotoAsset>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:setCoverUri(uri: string, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:Album;
方法or属性:setCoverUri(uri: string): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(displayName: string, callback: AsyncCallback<PhotoAsset>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(displayName: string): Promise<PhotoAsset>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(displayName: string, options: PhotoCreateOptions): Promise<PhotoAsset>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(displayName: string, options: PhotoCreateOptions, callback: AsyncCallback<PhotoAsset>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(photoType: PhotoType, extension: string, options: CreateOptions, callback: AsyncCallback<string>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(photoType: PhotoType, extension: string, callback: AsyncCallback<string>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAsset(photoType: PhotoType, extension: string, options?: CreateOptions): Promise<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAlbum(name: string, callback: AsyncCallback<Album>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createAlbum(name: string): Promise<Album>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:deleteAlbums(albums: Array<Album>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:deleteAlbums(albums: Array<Album>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getAlbums(
type: AlbumType,
subtype: AlbumSubtype,
options: FetchOptions,
callback: AsyncCallback<FetchResult<Album>>
): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getAlbums(type: AlbumType, subtype: AlbumSubtype, callback: AsyncCallback<FetchResult<Album>>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getAlbums(type: AlbumType, subtype: AlbumSubtype, options?: FetchOptions): Promise<FetchResult<Album>>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:deleteAssets(uriList: Array<string>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:deleteAssets(uriList: Array<string>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:registerChange(uri: string, forChildUris: boolean, callback: Callback<ChangeData>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:unRegisterChange(uri: string, callback?: Callback<ChangeData>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createDeleteRequest(uriList: Array<string>, callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:createDeleteRequest(uriList: Array<string>): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getPhotoIndex(photoUri: string, albumUri: string, options: FetchOptions, callback: AsyncCallback<number>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:getPhotoIndex(photoUri: string, albumUri: string, options: FetchOptions): Promise<number>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:release(callback: AsyncCallback<void>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoAccessHelper;
方法or属性:release(): Promise<void>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ADD
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_UPDATE
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_REMOVE
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ALBUM_ADD_ASSET
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ALBUM_REMOVE_ASSET
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:DefaultChangeUri;
方法or属性:DEFAULT_PHOTO_URI = 'file://media/Photo'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:DefaultChangeUri;
方法or属性:DEFAULT_ALBUM_URI = 'file://media/PhotoAlbum'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:ChangeData;
方法or属性:type: NotifyType;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:ChangeData;
方法or属性:uris: Array<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:ChangeData;
方法or属性:extraUris: Array<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewMIMETypes;
方法or属性:IMAGE_TYPE = 'image/*'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewMIMETypes;
方法or属性:VIDEO_TYPE = 'video/*'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewMIMETypes;
方法or属性:IMAGE_VIDEO_TYPE = '/'
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSelectOptions;
方法or属性:MIMEType?: PhotoViewMIMETypes;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSelectOptions;
方法or属性:maxSelectNumber?: number;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSelectResult;
方法or属性:photoUris: Array<string>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoSelectResult;
方法or属性:isOriginalPhoto: boolean;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewPicker;
方法or属性:select(option?: PhotoSelectOptions): Promise<PhotoSelectResult>;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewPicker;
方法or属性:select(option: PhotoSelectOptions, callback: AsyncCallback<PhotoSelectResult>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:PhotoViewPicker;
方法or属性:select(callback: AsyncCallback<PhotoSelectResult>): void;
@ohos.file.photoAccessHelper.d.ts
新增 NA 类名:DocumentSelectOptions;
方法or属性:defaultFilePathUri?: string;
@ohos.file.picker.d.ts
新增 NA 类名:DocumentSaveOptions;
方法or属性:defaultFilePathUri?: string;
@ohos.file.picker.d.ts
新增 NA 类名:DocumentSelectOptions;
方法or属性:fileSuffixFilters?: Array<string>;
@ohos.file.picker.d.ts
新增 NA 类名:DocumentSaveOptions;
方法or属性:fileSuffixChoices?: Array<string>;
@ohos.file.picker.d.ts
新增 NA 类名:recent;
方法or属性:function listFile(): Array<FileInfo>;
@ohos.file.recent.d.ts
新增 NA 类名:recent;
方法or属性:function add(uri: string): void;
@ohos.file.recent.d.ts
新增 NA 类名:recent;
方法or属性:function remove(uri: string): void;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly uri: string;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly srcPath: string;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly fileName: string;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly mode: number;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly size: number;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly mtime: number;
@ohos.file.recent.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly ctime: number;
@ohos.file.recent.d.ts
新增 NA 类名:statfs;
方法or属性:function getFreeSizeSync(path: string): number;
@ohos.file.statvfs.d.ts
新增 NA 类名:statfs;
方法or属性:function getTotalSizeSync(path: string): number;
@ohos.file.statvfs.d.ts
新增 NA 类名:storageStatistics;
方法or属性:function getTotalSizeSync(): number;
@ohos.file.storageStatistics.d.ts
新增 NA 类名:storageStatistics;
方法or属性:function getFreeSizeSync(): number;
@ohos.file.storageStatistics.d.ts
新增 NA 类名:trash;
方法or属性:function listFile(): Array<FileInfo>;
@ohos.file.trash.d.ts
新增 NA 类名:trash;
方法or属性:function recover(uri: string): void;
@ohos.file.trash.d.ts
新增 NA 类名:trash;
方法or属性:function completelyDelete(uri: string): void;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly uri: string;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly srcPath: string;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly fileName: string;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly mode: number;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly size: number;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly mtime: number;
@ohos.file.trash.d.ts
新增 NA 类名:FileInfo;
方法or属性:readonly ctime: number;
@ohos.file.trash.d.ts
新增 NA 类名:PhotoSubType;
方法or属性:DEFAULT
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PhotoSubType;
方法or属性:SCREENSHOT
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:SCREENSHOT
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PhotoSubType;
方法or属性:CAMERA
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:CAMERA
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PositionType;
方法or属性:LOCAL = 1
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PositionType;
方法or属性:CLOUD
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PositionType;
方法or属性:BOTH
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:setHidden(hiddenState: boolean, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:setHidden(hiddenState: boolean): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:setUserComment(userComment: string, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:setUserComment(userComment: string): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:getExif(callback: AsyncCallback<string>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FileAsset;
方法or属性:getExif(): Promise<string>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ImageVideoKey;
方法or属性:POSITION
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ImageVideoKey;
方法or属性:DATE_TRASHED
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ImageVideoKey;
方法or属性:HIDDEN
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:HIDDEN
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ImageVideoKey;
方法or属性:USER_COMMENT
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ImageVideoKey;
方法or属性:CAMERA_SHOT_KEY
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PhotoCreateOptions;
方法or属性:subType?: PhotoSubType;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:PhotoCreateOptions;
方法or属性:cameraShotKey?: string;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FetchResult;
方法or属性:getAllObject(callback: AsyncCallback<Array<T>>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:FetchResult;
方法or属性:getAllObject(): Promise<Array<T>>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumType;
方法or属性:USER = 0
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumType;
方法or属性:SYSTEM = 1024
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:USER_GENERIC = 1
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:FAVORITE = 1025
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:VIDEO
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:TRASH
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AlbumSubType;
方法or属性:ANY = 2147483647
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly albumType: AlbumType;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:AbsAlbum;
方法or属性:readonly albumSubType: AlbumSubType;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:addPhotoAssets(assets: Array<FileAsset>, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:addPhotoAssets(assets: Array<FileAsset>): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:removePhotoAssets(assets: Array<FileAsset>, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:removePhotoAssets(assets: Array<FileAsset>): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:recoverPhotoAssets(assets: Array<FileAsset>, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:recoverPhotoAssets(assets: Array<FileAsset>): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:deletePhotoAssets(assets: Array<FileAsset>, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:Album;
方法or属性:deletePhotoAssets(assets: Array<FileAsset>): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createPhotoAsset(displayName: string, createOption: PhotoCreateOptions): Promise<FileAsset>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createPhotoAsset(displayName: string, createOption: PhotoCreateOptions, callback: AsyncCallback<FileAsset>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createAudioAsset(displayName: string, callback: AsyncCallback<FileAsset>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createAudioAsset(displayName: string): Promise<FileAsset>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createAlbum(name: string, callback: AsyncCallback<Album>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:createAlbum(name: string): Promise<Album>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:deleteAlbums(albums: Array<Album>, callback: AsyncCallback<void>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:deleteAlbums(albums: Array<Album>): Promise<void>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:getAlbums(
type: AlbumType,
subType: AlbumSubType,
options: FetchOptions,
callback: AsyncCallback<FetchResult<Album>>
): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:getAlbums(type: AlbumType, subType: AlbumSubType, callback: AsyncCallback<FetchResult<Album>>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:getAlbums(type: AlbumType, subType: AlbumSubType, options?: FetchOptions): Promise<FetchResult<Album>>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:getPhotoIndex(photoUri: string, albumUri: string, options: FetchOptions, callback: AsyncCallback<number>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:getPhotoIndex(photoUri: string, albumUri: string, options: FetchOptions): Promise<number>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:on(uri: string, forSubUri: boolean, callback: Callback<ChangeData>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:UserFileManager;
方法or属性:off(uri: string, callback?: Callback<ChangeData>): void;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ADD
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_UPDATE
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_REMOVE
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ALBUM_ADD_ASSET
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:NotifyType;
方法or属性:NOTIFY_ALBUM_REMOVE_ASSET
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:DefaultChangeUri;
方法or属性:DEFAULT_PHOTO_URI
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:DefaultChangeUri;
方法or属性:DEFAULT_ALBUM_URI
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:DefaultChangeUri;
方法or属性:DEFAULT_AUDIO_URI
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ChangeData;
方法or属性:type: NotifyType;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ChangeData;
方法or属性:uris: Array<string>;
@ohos.filemanagement.userFileManager.d.ts
新增 NA 类名:ChangeData;
方法or属性:subUris: Array<string>;
@ohos.filemanagement.userFileManager.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function choose(callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function choose(callback: AsyncCallback<string>): void;
新版本信息:9
代替接口:
@ohos.document.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void;
新版本信息:9
代替接口:
@ohos.document.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.document.d.ts
废弃版本有变化 类名:document;
方法or属性:declare document
旧版本信息:
类名:document;
方法or属性:declare document
新版本信息:9
代替接口:
@ohos.document.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.access
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.access
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.close
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.copyFile
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
新版本信息:9
代替接口: ohos.file.fs.copyFile
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:9
代替接口: ohos.file.fs.createStream
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.truncate
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.truncate
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.fsync
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void;
新版本信息:9
代替接口: ohos.file.fs.stat
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.fdatasync
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:9
代替接口: ohos.file.fs.fdopenStream
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
新版本信息:9
代替接口: ohos.file.hash.hash
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口:
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
新版本信息:9
代替接口: ohos.file.fs.lstat
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.mkdir
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.mkdir
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
新版本信息:9
代替接口: ohos.file.fs.mkdtemp
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void;
新版本信息:9
代替接口: ohos.file.fs.open
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void;
新版本信息:9
代替接口: ohos.file.fs.open
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void;
新版本信息:9
代替接口: ohos.file.fs.open
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void;
新版本信息:9
代替接口: ohos.file.fs.listFile
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
position?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
position?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
新版本信息:9
代替接口: ohos.file.fs.readText
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
新版本信息:9
代替接口: ohos.file.fs.read
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
position?: number;
},
callback: AsyncCallback<ReadOut>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
position?: number;
},
callback: AsyncCallback<ReadOut>
): void;
新版本信息:9
代替接口: ohos.file.fs.read
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.rename
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.rmdir
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void;
新版本信息:9
代替接口: ohos.file.fs.stat
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.symlink
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.truncate
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.truncate
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.unlink
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:9
代替接口: ohos.file.fs.write
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:9
代替接口: ohos.file.fs.write
@ohos.fileio.d.ts
废弃版本有变化 类名:sourcefile;
方法or属性:declare function createWatcher(filename: string, events: number, callback: AsyncCallback<number>): Watcher;
旧版本信息:
类名:sourcefile;
方法or属性:declare function createWatcher(filename: string, events: number, callback: AsyncCallback<number>): Watcher;
新版本信息:10
代替接口: ohos.file.fs.createWatcher
@ohos.fileio.d.ts
废弃版本有变化 类名:Dir;
方法or属性:declare interface Dir
旧版本信息:
类名:Dir;
方法or属性:declare interface Dir
新版本信息:9
代替接口: ohos.file.fs.listFile
@ohos.fileio.d.ts
废弃版本有变化 类名:Dir;
方法or属性:read(callback: AsyncCallback<Dirent>): void;
旧版本信息:
类名:Dir;
方法or属性:read(callback: AsyncCallback<Dirent>): void;
新版本信息:9
代替接口: ohos.file.fs.listFile
@ohos.fileio.d.ts
废弃版本有变化 类名:Dir;
方法or属性:close(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Dir;
方法or属性:close(callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.file.fs.listFile
@ohos.fileio.d.ts
废弃版本有变化 类名:Watcher;
方法or属性:declare interface Watcher
旧版本信息:
类名:Watcher;
方法or属性:declare interface Watcher
新版本信息:10
代替接口: ohos.file.fs.Watcher
@ohos.fileio.d.ts
废弃版本有变化 类名:Watcher;
方法or属性:stop(): Promise<void>;
旧版本信息:
类名:Watcher;
方法or属性:stop(): Promise<void>;
新版本信息:10
代替接口: ohos.file.fs.Watcher.stop
@ohos.fileio.d.ts
废弃版本有变化 类名:Watcher;
方法or属性:stop(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Watcher;
方法or属性:stop(callback: AsyncCallback<void>): void;
新版本信息:10
代替接口: ohos.file.fs.Watcher.stop
@ohos.fileio.d.ts
废弃版本有变化 类名:Statfs;
方法or属性:declare Statfs
旧版本信息:
类名:Statfs;
方法or属性:declare Statfs
新版本信息:9
代替接口: ohos.file.statvfs.statfs
@ohos.statfs.d.ts
废弃版本有变化 类名:Statfs;
方法or属性:function getFreeBytes(path: string): Promise<number>;
旧版本信息:
类名:Statfs;
方法or属性:function getFreeBytes(path: string): Promise<number>;
新版本信息:9
代替接口: ohos.file.statvfs.getFreeSize
@ohos.statfs.d.ts
废弃版本有变化 类名:Statfs;
方法or属性:function getTotalBytes(path: string): Promise<number>;
旧版本信息:
类名:Statfs;
方法or属性:function getTotalBytes(path: string): Promise<number>;
新版本信息:9
代替接口: ohos.file.statvfs.getTotalSize
@ohos.statfs.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:export interface FileResponse
旧版本信息:
类名:FileResponse;
方法or属性:export interface FileResponse
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:uri: string;
旧版本信息:
类名:FileResponse;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListOption;
方法or属性:uri: string;
旧版本信息:
类名:FileListOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:uri: string;
旧版本信息:
类名:FileGetOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileDeleteOption;
方法or属性:uri: string;
旧版本信息:
类名:FileDeleteOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:uri: string;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:uri: string;
旧版本信息:
类名:FileReadTextOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:uri: string;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:uri: string;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileAccessOption;
方法or属性:uri: string;
旧版本信息:
类名:FileAccessOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:uri: string;
旧版本信息:
类名:FileMkdirOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:uri: string;
旧版本信息:
类名:FileRmdirOption;
方法or属性:uri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:length: number;
旧版本信息:
类名:FileResponse;
方法or属性:length: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:lastModifiedTime: number;
旧版本信息:
类名:FileResponse;
方法or属性:lastModifiedTime: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:type: 'dir' | 'file';
旧版本信息:
类名:FileResponse;
方法or属性:type: 'dir' | 'file';
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileResponse;
方法or属性:subFiles?: Array<FileResponse>;
旧版本信息:
类名:FileResponse;
方法or属性:subFiles?: Array<FileResponse>;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:export interface FileMoveOption
旧版本信息:
类名:FileMoveOption;
方法or属性:export interface FileMoveOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:srcUri: string;
旧版本信息:
类名:FileMoveOption;
方法or属性:srcUri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:srcUri: string;
旧版本信息:
类名:FileCopyOption;
方法or属性:srcUri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:dstUri: string;
旧版本信息:
类名:FileMoveOption;
方法or属性:dstUri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:dstUri: string;
旧版本信息:
类名:FileCopyOption;
方法or属性:dstUri: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:success?: (uri: string) => void;
旧版本信息:
类名:FileMoveOption;
方法or属性:success?: (uri: string) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:success?: (uri: string) => void;
旧版本信息:
类名:FileCopyOption;
方法or属性:success?: (uri: string) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileMoveOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileListOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileCopyOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileGetOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileDeleteOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileDeleteOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileReadTextOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileAccessOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileAccessOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileMkdirOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:
类名:FileRmdirOption;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMoveOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileMoveOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileListOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileCopyOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileGetOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileDeleteOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileDeleteOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileReadTextOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileAccessOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileAccessOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileMkdirOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:complete?: () => void;
旧版本信息:
类名:FileRmdirOption;
方法or属性:complete?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListResponse;
方法or属性:export interface FileListResponse
旧版本信息:
类名:FileListResponse;
方法or属性:export interface FileListResponse
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListResponse;
方法or属性:fileList: Array<FileResponse>;
旧版本信息:
类名:FileListResponse;
方法or属性:fileList: Array<FileResponse>;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListOption;
方法or属性:export interface FileListOption
旧版本信息:
类名:FileListOption;
方法or属性:export interface FileListOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileListOption;
方法or属性:success?: (data: FileListResponse) => void;
旧版本信息:
类名:FileListOption;
方法or属性:success?: (data: FileListResponse) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileCopyOption;
方法or属性:export interface FileCopyOption
旧版本信息:
类名:FileCopyOption;
方法or属性:export interface FileCopyOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:export interface FileGetOption
旧版本信息:
类名:FileGetOption;
方法or属性:export interface FileGetOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:recursive?: boolean;
旧版本信息:
类名:FileGetOption;
方法or属性:recursive?: boolean;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:recursive?: boolean;
旧版本信息:
类名:FileMkdirOption;
方法or属性:recursive?: boolean;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:recursive?: boolean;
旧版本信息:
类名:FileRmdirOption;
方法or属性:recursive?: boolean;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileGetOption;
方法or属性:success?: (file: FileResponse) => void;
旧版本信息:
类名:FileGetOption;
方法or属性:success?: (file: FileResponse) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileDeleteOption;
方法or属性:export interface FileDeleteOption
旧版本信息:
类名:FileDeleteOption;
方法or属性:export interface FileDeleteOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileDeleteOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileDeleteOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileAccessOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileAccessOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileMkdirOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:success?: () => void;
旧版本信息:
类名:FileRmdirOption;
方法or属性:success?: () => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:export interface FileWriteTextOption
旧版本信息:
类名:FileWriteTextOption;
方法or属性:export interface FileWriteTextOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:text: string;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:text: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextResponse;
方法or属性:text: string;
旧版本信息:
类名:FileReadTextResponse;
方法or属性:text: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:encoding?: string;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:encoding?: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:encoding?: string;
旧版本信息:
类名:FileReadTextOption;
方法or属性:encoding?: string;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteTextOption;
方法or属性:append?: boolean;
旧版本信息:
类名:FileWriteTextOption;
方法or属性:append?: boolean;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:append?: boolean;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:append?: boolean;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextResponse;
方法or属性:export interface FileReadTextResponse
旧版本信息:
类名:FileReadTextResponse;
方法or属性:export interface FileReadTextResponse
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:export interface FileReadTextOption
旧版本信息:
类名:FileReadTextOption;
方法or属性:export interface FileReadTextOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:position?: number;
旧版本信息:
类名:FileReadTextOption;
方法or属性:position?: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:position?: number;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:position?: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:position?: number;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:position?: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:length?: number;
旧版本信息:
类名:FileReadTextOption;
方法or属性:length?: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:length?: number;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:length?: number;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadTextOption;
方法or属性:success?: (data: FileReadTextResponse) => void;
旧版本信息:
类名:FileReadTextOption;
方法or属性:success?: (data: FileReadTextResponse) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:export interface FileWriteArrayBufferOption
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:export interface FileWriteArrayBufferOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileWriteArrayBufferOption;
方法or属性:buffer: Uint8Array;
旧版本信息:
类名:FileWriteArrayBufferOption;
方法or属性:buffer: Uint8Array;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferResponse;
方法or属性:buffer: Uint8Array;
旧版本信息:
类名:FileReadArrayBufferResponse;
方法or属性:buffer: Uint8Array;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferResponse;
方法or属性:export interface FileReadArrayBufferResponse
旧版本信息:
类名:FileReadArrayBufferResponse;
方法or属性:export interface FileReadArrayBufferResponse
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:export interface FileReadArrayBufferOption
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:export interface FileReadArrayBufferOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileReadArrayBufferOption;
方法or属性:success?: (data: FileReadArrayBufferResponse) => void;
旧版本信息:
类名:FileReadArrayBufferOption;
方法or属性:success?: (data: FileReadArrayBufferResponse) => void;
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileAccessOption;
方法or属性:export interface FileAccessOption
旧版本信息:
类名:FileAccessOption;
方法or属性:export interface FileAccessOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileMkdirOption;
方法or属性:export interface FileMkdirOption
旧版本信息:
类名:FileMkdirOption;
方法or属性:export interface FileMkdirOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:FileRmdirOption;
方法or属性:export interface FileRmdirOption
旧版本信息:
类名:FileRmdirOption;
方法or属性:export interface FileRmdirOption
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:export default class File
旧版本信息:
类名:File;
方法or属性:export default class File
新版本信息:10
代替接口:
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static move(options: FileMoveOption): void;
旧版本信息:
类名:File;
方法or属性:static move(options: FileMoveOption): void;
新版本信息:10
代替接口: ohos.file.fs.moveFile
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static copy(options: FileCopyOption): void;
旧版本信息:
类名:File;
方法or属性:static copy(options: FileCopyOption): void;
新版本信息:10
代替接口: ohos.file.fs.copyFile
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static list(options: FileListOption): void;
旧版本信息:
类名:File;
方法or属性:static list(options: FileListOption): void;
新版本信息:10
代替接口: ohos.file.fs.listFile
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static get(options: FileGetOption): void;
旧版本信息:
类名:File;
方法or属性:static get(options: FileGetOption): void;
新版本信息:10
代替接口: ohos.file.fs.stat
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static delete(options: FileDeleteOption): void;
旧版本信息:
类名:File;
方法or属性:static delete(options: FileDeleteOption): void;
新版本信息:10
代替接口: ohos.file.fs.unlink
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static writeText(options: FileWriteTextOption): void;
旧版本信息:
类名:File;
方法or属性:static writeText(options: FileWriteTextOption): void;
新版本信息:10
代替接口: ohos.file.fs.write
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static readText(options: FileReadTextOption): void;
旧版本信息:
类名:File;
方法or属性:static readText(options: FileReadTextOption): void;
新版本信息:10
代替接口: ohos.file.fs.readText
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static writeArrayBuffer(options: FileWriteArrayBufferOption): void;
旧版本信息:
类名:File;
方法or属性:static writeArrayBuffer(options: FileWriteArrayBufferOption): void;
新版本信息:10
代替接口: ohos.file.fs.write
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static readArrayBuffer(options: FileReadArrayBufferOption): void;
旧版本信息:
类名:File;
方法or属性:static readArrayBuffer(options: FileReadArrayBufferOption): void;
新版本信息:10
代替接口: ohos.file.fs.read
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static access(options: FileAccessOption): void;
旧版本信息:
类名:File;
方法or属性:static access(options: FileAccessOption): void;
新版本信息:10
代替接口: ohos.file.fs.access
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static mkdir(options: FileMkdirOption): void;
旧版本信息:
类名:File;
方法or属性:static mkdir(options: FileMkdirOption): void;
新版本信息:10
代替接口: ohos.file.fs.mkdir
@system.file.d.ts
废弃版本有变化 类名:File;
方法or属性:static rmdir(options: FileRmdirOption): void;
旧版本信息:
类名:File;
方法or属性:static rmdir(options: FileRmdirOption): void;
新版本信息:10
代替接口: ohos.file.fs.rmdir
@system.file.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function choose(callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function choose(callback: AsyncCallback<string>): void;
新版本信息:Parameter
@ohos.document.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function choose(types: string[], callback: AsyncCallback<string>): void;
新版本信息:Parameter
@ohos.document.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function show(uri: string, type: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.document.d.ts
新增(错误码) 类名:Environment;
方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void;
旧版本信息:
类名:Environment;
方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void;
新版本信息:202,13900020,13900042
@ohos.file.environment.d.ts
新增(错误码) 类名:Environment;
方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void;
旧版本信息:
类名:Environment;
方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void;
新版本信息:202,13900020,13900042
@ohos.file.environment.d.ts
新增(错误码) 类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
旧版本信息:
类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042,14000001,14000002,14000003,14000004,14300001,14300002,14300003,14300004
@ohos.file.fileAccess.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<boolean>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<boolean>): void;
新版本信息:13900002,13900005,13900008,13900011,13900012,13900013,13900018,13900020,13900023,13900030,13900033,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function close(file: number | File, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function close(file: number | File, callback: AsyncCallback<void>): void;
新版本信息:13900004,13900005,13900008,13900025,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
新版本信息:13900002,13900004,13900005,13900008,13900010,13900011,13900012,13900013,13900018,13900019,13900020,13900030,13900031,13900033,13900034,13900038,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
新版本信息:13900002,13900004,13900005,13900008,13900010,13900011,13900012,13900013,13900018,13900019,13900020,13900030,13900031,13900033,13900034,13900038,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:13900005,13900008,13900020,13900025,13900027,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900010,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:13900005,13900008,13900020,13900025,13900027,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
},
callback: AsyncCallback<string[]>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
},
callback: AsyncCallback<string[]>
): void;
新版本信息:13900002,13900008,13900011,13900018,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
新版本信息:13900002,13900008,13900011,13900012,13900013,13900018,13900030,13900033,13900038,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900015,13900018,13900020,13900025,13900028,13900030,13900033,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900015,13900018,13900020,13900025,13900028,13900030,13900033,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<File>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<File>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback<File>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback<File>): void;
新版本信息:13900001,13900002,13900004,13900006,13900008,13900011,13900012,13900013,13900014,13900015,13900017,13900018,13900019,13900020,13900022,13900023,13900024,13900025,13900027,13900029,13900030,13900033,13900034,13900038,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
新版本信息:13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900034,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
新版本信息:13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900034,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function readText(filePath: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(filePath: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900011,13900012,13900013,13900014,13900018,13900020,13900027,13900030,13900032,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function stat(file: string | number, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function stat(file: string | number, callback: AsyncCallback<Stat>): void;
新版本信息:13900002,13900004,13900005,13900008,13900011,13900012,13900013,13900018,13900030,13900031,13900033,13900038,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900005,13900008,13900011,13900012,13900013,13900015,13900018,13900025,13900027,13900030,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function truncate(file: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(file: string | number, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900004,13900005,13900008,13900012,13900013,13900018,13900019,13900020,13900023,13900024,13900027,13900030,13900033,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len: number, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900004,13900005,13900008,13900012,13900013,13900018,13900019,13900020,13900023,13900024,13900027,13900030,13900033,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900005,13900008,13900011,13900012,13900013,13900014,13900018,13900019,13900020,13900027,13900030,13900033,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:File;
方法or属性:lock(exclusive: boolean, callback: AsyncCallback<void>): void;
旧版本信息:
类名:File;
方法or属性:lock(exclusive: boolean, callback: AsyncCallback<void>): void;
新版本信息:13900004,13900008,13900020,13900034,13900042,13900043
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:close(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Stream;
方法or属性:close(callback: AsyncCallback<void>): void;
新版本信息:13900004,13900005,13900008,13900025,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:flush(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Stream;
方法or属性:flush(callback: AsyncCallback<void>): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:write(buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:Stream;
方法or属性:write(buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:write(
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:Stream;
方法or属性:write(
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:13900001,13900004,13900005,13900008,13900010,13900013,13900020,13900024,13900025,13900034,13900041,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
旧版本信息:
类名:Stream;
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
新版本信息:13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900034,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:Stream;
方法or属性:read(
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:Stream;
方法or属性:read(
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
新版本信息:13900004,13900005,13900008,13900010,13900013,13900019,13900020,13900034,13900042
@ohos.file.fs.d.ts
新增(错误码) 类名:hash;
方法or属性:function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:hash;
方法or属性:function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
新版本信息:13900020,13900042
@ohos.file.hash.d.ts
新增(错误码) 类名:securityLabel;
方法or属性:function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback<void>): void;
旧版本信息:
类名:securityLabel;
方法or属性:function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900007,13900015,13900020,13900025,13900037,13900041,13900042
@ohos.file.securityLabel.d.ts
新增(错误码) 类名:securityLabel;
方法or属性:function getSecurityLabel(path: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:securityLabel;
方法or属性:function getSecurityLabel(path: string, callback: AsyncCallback<string>): void;
新版本信息:13900001,13900007,13900015,13900020,13900025,13900037,13900041,13900042
@ohos.file.securityLabel.d.ts
新增(错误码) 类名:statfs;
方法or属性:function getFreeSize(path: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:statfs;
方法or属性:function getFreeSize(path: string, callback: AsyncCallback<number>): void;
新版本信息:13900002,13900004,13900005,13900008,13900011,13900012,13900013,13900018,13900030,13900031,13900033,13900038,13900042
@ohos.file.statvfs.d.ts
新增(错误码) 类名:statfs;
方法or属性:function getTotalSize(path: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:statfs;
方法or属性:function getTotalSize(path: string, callback: AsyncCallback<number>): void;
新版本信息:13900002,13900004,13900005,13900008,13900011,13900012,13900013,13900018,13900030,13900031,13900033,13900038,13900042
@ohos.file.statvfs.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getCurrentBundleStats(): Promise<BundleStats>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getCurrentBundleStats(): Promise<BundleStats>;
新版本信息:401,13600001,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
新版本信息:201,202,401,13600001,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
新版本信息:201,202,401,13600001,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
新版本信息:201,202,401,13600001,13600009,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
新版本信息:201,202,401,13600001,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
新版本信息:201,202,401,13600001,13900042
@ohos.file.storageStatistics.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
旧版本信息:
类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
新版本信息:201,202,401,13600001,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
新版本信息:201,202,401,13600001,13600002,13600003,13600005,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
新版本信息:201,202,401,13600001,13600002,13600004,13600005,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
新版本信息:201,202,401,13600001,13600002,13600005,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
新版本信息:201,202,401,13600001,13600002,13600005,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
新版本信息:201,202,401,13600001,13600008,13900042
@ohos.file.volumeManager.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function close(fd: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function chmod(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function ftruncate(fd: number, len: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fstat(fd: number, callback: AsyncCallback<Stat>): void;
新版本信息:fstat
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fchown(fd: number, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fchmod(fd: number, mode: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function hash(path: string, algorithm: string, callback: AsyncCallback<string>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function lchown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function lstat(path: string, callback: AsyncCallback<Stat>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<number>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, callback: AsyncCallback<number>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, flags: number, mode: number, callback: AsyncCallback<number>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function opendir(path: string, callback: AsyncCallback<Dir>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
position?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
position?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
position?: number;
},
callback: AsyncCallback<ReadOut>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
position?: number;
},
callback: AsyncCallback<ReadOut>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function stat(path: string, callback: AsyncCallback<Stat>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(path: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(path: string, len: number, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Dir;
方法or属性:read(callback: AsyncCallback<Dirent>): void;
旧版本信息:
类名:Dir;
方法or属性:read(callback: AsyncCallback<Dirent>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Dir;
方法or属性:close(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Dir;
方法or属性:close(callback: AsyncCallback<void>): void;
新版本信息:close
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:close(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Stream;
方法or属性:close(callback: AsyncCallback<void>): void;
新版本信息:close
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:flush(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Stream;
方法or属性:flush(callback: AsyncCallback<void>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:write(buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:Stream;
方法or属性:write(buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:write(
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:Stream;
方法or属性:write(
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
position?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
旧版本信息:
类名:Stream;
方法or属性:read(buffer: ArrayBuffer, callback: AsyncCallback<ReadOut>): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Stream;
方法or属性:read(
buffer: ArrayBuffer,
options: {
position?: number;
offset?: number;
length?: number;
},
callback: AsyncCallback<ReadOut>
): void;
旧版本信息:
类名:Stream;
方法or属性:read(
buffer: ArrayBuffer,
options: {
position?: number;
offset?: number;
length?: number;
},
callback: AsyncCallback<ReadOut>
): void;
新版本信息:Parameter
@ohos.fileio.d.ts
新增(错误码) 类名:Watcher;
方法or属性:stop(callback: AsyncCallback<void>): void;
旧版本信息:
类名:Watcher;
方法or属性:stop(callback: AsyncCallback<void>): void;
新版本信息:stop
@ohos.fileio.d.ts
新增(错误码) 类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
旧版本信息:
类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
新版本信息:201,202,401,143000001
@ohos.fileshare.d.ts
错误码有变化 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise<void>;
旧版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900015,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise<void>;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
错误码有变化 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback<void>): void;
旧版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900015,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback<void>): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
错误码有变化 类名:sourcefile;
方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void;
旧版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900015,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
类名:sourcefile;
方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
错误码有变化 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>;
旧版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900015,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
错误码有变化 类名:sourcefile;
方法or属性:declare function renameSync(oldPath: string, newPath: string): void;
旧版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900015,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
类名:sourcefile;
方法or属性:declare function renameSync(oldPath: string, newPath: string): void;
新版本信息:13900001,13900002,13900008,13900011,13900012,13900013,13900014,13900015,13900016,13900018,13900019,13900020,13900025,13900027,13900028,13900032,13900033,13900041,13900042
@ohos.file.fs.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void;
旧版本信息:13600001,13900032,401
类名:storageStatistics;
方法or属性:function getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void;
新版本信息:13600001,13900042,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getSystemSize(callback: AsyncCallback<number>): void;
旧版本信息:13600001,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getSystemSize(callback: AsyncCallback<number>): void;
新版本信息:13600001,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(): Promise<StorageStats>;
旧版本信息:13600001,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getUserStorageStats(): Promise<StorageStats>;
新版本信息:13600001,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number): Promise<StorageStats>;
旧版本信息:13600001,13600009,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number): Promise<StorageStats>;
新版本信息:13600001,13600009,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getTotalSize(callback: AsyncCallback<number>): void;
旧版本信息:13600001,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getTotalSize(callback: AsyncCallback<number>): void;
新版本信息:13600001,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:storageStatistics;
方法or属性:function getFreeSize(callback: AsyncCallback<number>): void;
旧版本信息:13600001,13900032,201,202,401
类名:storageStatistics;
方法or属性:function getFreeSize(callback: AsyncCallback<number>): void;
新版本信息:13600001,13900042,201,202,401
@ohos.file.storageStatistics.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function getAllVolumes(callback: AsyncCallback<Array<Volume>>): void;
旧版本信息:13600001,13900032,201,202,401
类名:volumeManager;
方法or属性:function getAllVolumes(callback: AsyncCallback<Array<Volume>>): void;
新版本信息:13600001,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function mount(volumeId: string, callback: AsyncCallback<void>): void;
旧版本信息:13600001,13600002,13600003,13600005,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function mount(volumeId: string, callback: AsyncCallback<void>): void;
新版本信息:13600001,13600002,13600003,13600005,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function unmount(volumeId: string, callback: AsyncCallback<void>): void;
旧版本信息:13600001,13600002,13600004,13600005,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function unmount(volumeId: string, callback: AsyncCallback<void>): void;
新版本信息:13600001,13600002,13600004,13600005,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string, callback: AsyncCallback<Volume>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string, callback: AsyncCallback<Volume>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string, callback: AsyncCallback<Volume>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string, callback: AsyncCallback<Volume>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback<void>): void;
旧版本信息:13600001,13600002,13600005,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback<void>): void;
新版本信息:13600001,13600002,13600005,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string, callback: AsyncCallback<void>): void;
旧版本信息:13600001,13600002,13600005,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string, callback: AsyncCallback<void>): void;
新版本信息:13600001,13600002,13600005,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
错误码有变化 类名:volumeManager;
方法or属性:function partition(diskId: string, type: number, callback: AsyncCallback<void>): void;
旧版本信息:13600001,13600008,13900032,201,202,401
类名:volumeManager;
方法or属性:function partition(diskId: string, type: number, callback: AsyncCallback<void>): void;
新版本信息:13600001,13600008,13900042,201,202,401
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:Environment;
方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void;
旧版本信息:
类名:Environment;
方法or属性:function getStorageDataDir(callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.environment.d.ts
访问级别有变化 类名:Environment;
方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void;
旧版本信息:
类名:Environment;
方法or属性:function getUserDataDir(callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.environment.d.ts
访问级别有变化 类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
旧版本信息:
类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:uri: string;
旧版本信息:
类名:FileInfo;
方法or属性:uri: string;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:RootInfo;
方法or属性:uri: string;
旧版本信息:
类名:RootInfo;
方法or属性:uri: string;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:fileName: string;
旧版本信息:
类名:FileInfo;
方法or属性:fileName: string;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:mode: number;
旧版本信息:
类名:FileInfo;
方法or属性:mode: number;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:size: number;
旧版本信息:
类名:FileInfo;
方法or属性:size: number;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:mtime: number;
旧版本信息:
类名:FileInfo;
方法or属性:mtime: number;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileInfo;
方法or属性:mimeType: string;
旧版本信息:
类名:FileInfo;
方法or属性:mimeType: string;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:RootInfo;
方法or属性:deviceType: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceType: number;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:RootInfo;
方法or属性:displayName: string;
旧版本信息:
类名:RootInfo;
方法or属性:displayName: string;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:RootInfo;
方法or属性:deviceFlags: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceFlags: number;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:OPENFLAGS;
方法or属性:READ = 0o0
旧版本信息:
类名:OPENFLAGS;
方法or属性:READ = 0o0
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:OPENFLAGS;
方法or属性:WRITE = 0o1
旧版本信息:
类名:OPENFLAGS;
方法or属性:WRITE = 0o1
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:OPENFLAGS;
方法or属性:WRITE_READ = 0o2
旧版本信息:
类名:OPENFLAGS;
方法or属性:WRITE_READ = 0o2
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
新版本信息:systemapi
@ohos.file.fileAccess.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_LOCAL_DISK = 1
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_LOCAL_DISK = 1
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_SHARED_DISK
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_SHARED_DISK
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_SHARED_TERMINAL
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_SHARED_TERMINAL
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_NETWORK_NEIGHBORHOODS
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_NETWORK_NEIGHBORHOODS
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_MTP
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_MTP
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_USB
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_USB
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_CLOUD
旧版本信息:
类名:DeviceType;
方法or属性:DEVICE_EXTERNAL_CLOUD
新版本信息:systemapi
@ohos.file.fileExtensionInfo.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
新版本信息:systemapi
@ohos.file.storageStatistics.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
旧版本信息:
类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:Volume;
方法or属性:path: string;
旧版本信息:
类名:Volume;
方法or属性:path: string;
新版本信息:systemapi
@ohos.file.volumeManager.d.ts
访问级别有变化 类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
旧版本信息:
类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
新版本信息:systemapi
@ohos.fileshare.d.ts
权限有变化 类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
旧版本信息:
类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER,ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:uri: string;
旧版本信息:
类名:FileInfo;
方法or属性:uri: string;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:RootInfo;
方法or属性:uri: string;
旧版本信息:
类名:RootInfo;
方法or属性:uri: string;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:fileName: string;
旧版本信息:
类名:FileInfo;
方法or属性:fileName: string;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:mode: number;
旧版本信息:
类名:FileInfo;
方法or属性:mode: number;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:size: number;
旧版本信息:
类名:FileInfo;
方法or属性:size: number;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:mtime: number;
旧版本信息:
类名:FileInfo;
方法or属性:mtime: number;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileInfo;
方法or属性:mimeType: string;
旧版本信息:
类名:FileInfo;
方法or属性:mimeType: string;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:RootInfo;
方法or属性:deviceType: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceType: number;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:RootInfo;
方法or属性:displayName: string;
旧版本信息:
类名:RootInfo;
方法or属性:displayName: string;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:RootInfo;
方法or属性:deviceFlags: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceFlags: number;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback<number>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:delete(uri: string, callback: AsyncCallback<number>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string, callback: AsyncCallback<string>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string, callback: AsyncCallback<boolean>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
旧版本信息:
类名:FileAccessHelper;
方法or属性:getRoots(callback: AsyncCallback<RootIterator>): void;
新版本信息:ohos.permission.FILE_ACCESS_MANAGER
@ohos.file.fileAccess.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSizeOfVolume(volumeUuid: string): Promise<number>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getBundleStats(packageName: string): Promise<BundleStats>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getSystemSize(): Promise<number>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(callback: AsyncCallback<StorageStats>): void;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
旧版本信息:
类名:storageStatistics;
方法or属性:function getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getTotalSize(): Promise<number>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
旧版本信息:
类名:storageStatistics;
方法or属性:function getFreeSize(): Promise<number>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.storageStatistics.d.ts
权限有变化 类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
旧版本信息:
类名:volumeManager;
方法or属性:function getAllVolumes(): Promise<Array<Volume>>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function mount(volumeId: string): Promise<void>;
新版本信息:ohos.permission.MOUNT_UNMOUNT_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function unmount(volumeId: string): Promise<void>;
新版本信息:ohos.permission.MOUNT_UNMOUNT_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeByUuid(uuid: string): Promise<Volume>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
旧版本信息:
类名:volumeManager;
方法or属性:function getVolumeById(volumeId: string): Promise<Volume>;
新版本信息:ohos.permission.STORAGE_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function setVolumeDescription(uuid: string, description: string): Promise<void>;
新版本信息:ohos.permission.MOUNT_UNMOUNT_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function format(volumeId: string, fsType: string): Promise<void>;
新版本信息:ohos.permission.MOUNT_FORMAT_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
旧版本信息:
类名:volumeManager;
方法or属性:function partition(diskId: string, type: number): Promise<void>;
新版本信息:ohos.permission.MOUNT_FORMAT_MANAGER
@ohos.file.volumeManager.d.ts
权限有变化 类名:fileShare;
方法or属性:function grantUriPermission(
uri: string,
bundleName: string,
flag: wantConstant.Flags,
callback: AsyncCallback<void>
): void;
旧版本信息:
类名:fileShare;
方法or属性:function grantUriPermission(
uri: string,
bundleName: string,
flag: wantConstant.Flags,
callback: AsyncCallback<void>
): void;
新版本信息:ohos.permission.WRITE_MEDIA
@ohos.fileshare.d.ts
权限有变化 类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
旧版本信息:
类名:fileShare;
方法or属性:function grantUriPermission(uri: string, bundleName: string, flag: wantConstant.Flags): Promise<void>;
新版本信息:ohos.permission.WRITE_MEDIA
@ohos.fileshare.d.ts
model有变化 类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
旧版本信息:
类名:fileAccess;
方法or属性:function getFileAccessAbilityInfo(): Promise<Array<Want>>;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:uri: string;
旧版本信息:
类名:FileInfo;
方法or属性:uri: string;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:RootInfo;
方法or属性:uri: string;
旧版本信息:
类名:RootInfo;
方法or属性:uri: string;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:fileName: string;
旧版本信息:
类名:FileInfo;
方法or属性:fileName: string;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:mode: number;
旧版本信息:
类名:FileInfo;
方法or属性:mode: number;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:size: number;
旧版本信息:
类名:FileInfo;
方法or属性:size: number;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:mtime: number;
旧版本信息:
类名:FileInfo;
方法or属性:mtime: number;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileInfo;
方法or属性:mimeType: string;
旧版本信息:
类名:FileInfo;
方法or属性:mimeType: string;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:RootInfo;
方法or属性:deviceType: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceType: number;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:RootInfo;
方法or属性:displayName: string;
旧版本信息:
类名:RootInfo;
方法or属性:displayName: string;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:RootInfo;
方法or属性:deviceFlags: number;
旧版本信息:
类名:RootInfo;
方法or属性:deviceFlags: number;
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:OPENFLAGS;
方法or属性:READ = 0o0
旧版本信息:
类名:OPENFLAGS;
方法or属性:READ = 0o0
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:OPENFLAGS;
方法or属性:WRITE = 0o1
旧版本信息:
类名:OPENFLAGS;
方法or属性:WRITE = 0o1
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:OPENFLAGS;
方法or属性:WRITE_READ = 0o2
旧版本信息:
类名:OPENFLAGS;
方法or属性:WRITE_READ = 0o2
新版本信息:StageModelOnly
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:interface FileAccessHelper
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:interface FileAccessHelper
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS): Promise<number>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:openFile(uri: string, flags: OPENFLAGS): Promise<number>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string): Promise<string>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:createFile(uri: string, displayName: string): Promise<string>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string): Promise<string>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:mkDir(parentUri: string, displayName: string): Promise<string>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:delete(uri: string): Promise<number>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:delete(uri: string): Promise<number>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string): Promise<string>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:move(sourceFile: string, destFile: string): Promise<string>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string): Promise<string>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:rename(uri: string, displayName: string): Promise<string>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string): Promise<boolean>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:access(sourceFileUri: string): Promise<boolean>;
新版本信息:
@ohos.file.fileAccess.d.ts
model有变化 类名:FileAccessHelper;
方法or属性:getRoots(): Promise<RootIterator>;
旧版本信息:StageModelOnly
类名:FileAccessHelper;
方法or属性:getRoots(): Promise<RootIterator>;
新版本信息:
@ohos.file.fileAccess.d.ts
type有变化 类名:Stat;
方法or属性:readonly ino: bigint;
旧版本信息:number
类名:Stat;
方法or属性:readonly ino: bigint;
新版本信息:bigint
@ohos.file.fs.d.ts
type有变化 类名:Stat;
方法or属性:readonly mode: number;
旧版本信息:bigint
类名:Stat;
方法or属性:readonly mode: number;
新版本信息:number
@ohos.file.fs.d.ts
type有变化 类名:PhotoSelectOptions;
方法or属性:MIMEType?: PhotoViewMIMETypes;
旧版本信息:PhotoViewMIMETypes
类名:PhotoSelectOptions;
方法or属性:MIMEType?: PhotoViewMIMETypes;
新版本信息:?PhotoViewMIMETypes
@ohos.file.picker.d.ts
type有变化 类名:PhotoSelectOptions;
方法or属性:maxSelectNumber?: number;
旧版本信息:number
类名:PhotoSelectOptions;
方法or属性:maxSelectNumber?: number;
新版本信息:?number
@ohos.file.picker.d.ts
type有变化 类名:PhotoSaveOptions;
方法or属性:newFileNames?: Array<string>;
旧版本信息:Array<string>
类名:PhotoSaveOptions;
方法or属性:newFileNames?: Array<string>;
新版本信息:?Array<string>
@ohos.file.picker.d.ts
type有变化 类名:DocumentSaveOptions;
方法or属性:newFileNames?: Array<string>;
旧版本信息:Array<string>
类名:DocumentSaveOptions;
方法or属性:newFileNames?: Array<string>;
新版本信息:?Array<string>
@ohos.file.picker.d.ts
type有变化 类名:AudioSaveOptions;
方法or属性:newFileNames?: Array<string>;
旧版本信息:Array<string>
类名:AudioSaveOptions;
方法or属性:newFileNames?: Array<string>;
新版本信息:?Array<string>
@ohos.file.picker.d.ts
函数有变化 类名:sourcefile;
方法or属性:declare function closeSync(fd: number | File): void;
类名:sourcefile;
方法or属性:declare function closeSync(file: number | File): void;
@ohos.file.fs.d.ts
函数有变化 类名:AbsAlbum;
方法or属性:readonly coverUri: string;
类名:AbsAlbum;
方法or属性:coverUri: string;
@ohos.filemanagement.userFileManager.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function access(path: string): Promise<boolean>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string): Promise<boolean>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<boolean>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function access(path: string, callback: AsyncCallback<boolean>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function accessSync(path: string): boolean;
旧版本信息:
类名:sourcefile;
方法or属性:declare function accessSync(path: string): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function close(file: number | File): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function close(file: number | File): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function close(file: number | File, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function close(file: number | File, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function closeSync(file: number | File): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function closeSync(file: number | File): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, mode?: number): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, mode?: number): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(src: string | number, dest: string | number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFile(
src: string | number,
dest: string | number,
mode: number,
callback: AsyncCallback<void>
): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function copyFileSync(src: string | number, dest: string | number, mode?: number): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function copyFileSync(src: string | number, dest: string | number, mode?: number): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fdatasync(fd: number): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasync(fd: number): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fdatasyncSync(fd: number): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fdatasyncSync(fd: number): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fsync(fd: number): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsync(fd: number): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsync(fd: number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function fsyncSync(fd: number): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function fsyncSync(fd: number): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}
): Promise<string[]>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}
): Promise<string[]>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function listFile(path: string, callback: AsyncCallback<string[]>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function listFile(path: string, callback: AsyncCallback<string[]>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
},
callback: AsyncCallback<string[]>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function listFile(
path: string,
options: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
},
callback: AsyncCallback<string[]>
): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function listFileSync(
path: string,
options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}
): string[];
旧版本信息:
类名:sourcefile;
方法or属性:declare function listFileSync(
path: string,
options?: {
recursion?: boolean;
listNum?: number;
filter?: Filter;
}
): string[];
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdir(path: string): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdirSync(path: string): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdirSync(path: string): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string): Promise<string>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string): Promise<string>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtemp(prefix: string, callback: AsyncCallback<string>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function mkdtempSync(prefix: string): string;
旧版本信息:
类名:sourcefile;
方法or属性:declare function mkdtempSync(prefix: string): string;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode?: number): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function moveFile(src: string, dest: string, mode: number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function moveFileSync(src: string, dest: string, mode?: number): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function open(path: string, mode?: number): Promise<File>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, mode?: number): Promise<File>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<File>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, callback: AsyncCallback<File>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback<File>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function open(path: string, mode: number, callback: AsyncCallback<File>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function openSync(path: string, mode?: number): File;
旧版本信息:
类名:sourcefile;
方法or属性:declare function openSync(path: string, mode?: number): File;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): Promise<number>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): Promise<number>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(fd: number, buffer: ArrayBuffer, callback: AsyncCallback<number>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function read(
fd: number,
buffer: ArrayBuffer,
options: {
offset?: number;
length?: number;
},
callback: AsyncCallback<number>
): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function readSync(
fd: number,
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): number;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readSync(
fd: number,
buffer: ArrayBuffer,
options?: {
offset?: number;
length?: number;
}
): number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): Promise<string>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): Promise<string>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function readText(filePath: string, callback: AsyncCallback<string>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(filePath: string, callback: AsyncCallback<string>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readText(
filePath: string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<string>
): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function readTextSync(
filePath: string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): string;
旧版本信息:
类名:sourcefile;
方法or属性:declare function readTextSync(
filePath: string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): string;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function renameSync(oldPath: string, newPath: string): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function renameSync(oldPath: string, newPath: string): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function rmdir(path: string): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdir(path: string): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdir(path: string, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function rmdirSync(path: string): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function rmdirSync(path: string): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function stat(file: string | number): Promise<Stat>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function stat(file: string | number): Promise<Stat>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function stat(file: string | number, callback: AsyncCallback<Stat>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function stat(file: string | number, callback: AsyncCallback<Stat>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function statSync(file: string | number): Stat;
旧版本信息:
类名:sourcefile;
方法or属性:declare function statSync(file: string | number): Stat;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len?: number): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len?: number): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function truncate(file: string | number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(file: string | number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len: number, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncate(file: string | number, len: number, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function truncateSync(file: string | number, len?: number): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function truncateSync(file: string | number, len?: number): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function unlink(path: string): Promise<void>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlink(path: string): Promise<void>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlink(path: string, callback: AsyncCallback<void>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function unlinkSync(path: string): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function unlinkSync(path: string): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): Promise<number>;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): Promise<number>;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(fd: number, buffer: ArrayBuffer | string, callback: AsyncCallback<number>): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
旧版本信息:
类名:sourcefile;
方法or属性:declare function write(
fd: number,
buffer: ArrayBuffer | string,
options: {
offset?: number;
length?: number;
encoding?: string;
},
callback: AsyncCallback<number>
): void;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:declare function writeSync(
fd: number,
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): number;
旧版本信息:
类名:sourcefile;
方法or属性:declare function writeSync(
fd: number,
buffer: ArrayBuffer | string,
options?: {
offset?: number;
length?: number;
encoding?: string;
}
): number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:sourcefile;
方法or属性:export type Filter = {
/
* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
suffix?: Array<string>;
/

* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
displayName?: Array<string>;
/
* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
mimeType?: Array<string>;
/

* @type { ?number }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
fileSizeOver?: number;
/
* @type { ?number }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
lastModifiedAfter?: number;
/

* @type { ?boolean }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
excludeMedia?: boolean;
};
旧版本信息:
类名:sourcefile;
方法or属性:export type Filter = {
/
* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
suffix?: Array<string>;
/

* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
displayName?: Array<string>;
/
* @type { ?Array<string> }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
mimeType?: Array<string>;
/

* @type { ?number }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
fileSizeOver?: number;
/
* @type { ?number }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
lastModifiedAfter?: number;
/

* @type { ?boolean }
* @syscap SystemCapability.FileManagement.File.FileIO
* @since 10
*/
excludeMedia?: boolean;
};
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:fileIo;
方法or属性:declare fileIo
旧版本信息:
类名:fileIo;
方法or属性:declare fileIo
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:OpenMode;
方法or属性:OpenMode
旧版本信息:
类名:OpenMode;
方法or属性:OpenMode
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:File;
方法or属性:declare interface File
旧版本信息:
类名:File;
方法or属性:declare interface File
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:File;
方法or属性:readonly fd: number;
旧版本信息:
类名:File;
方法or属性:readonly fd: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:declare interface Stat
旧版本信息:
类名:Stat;
方法or属性:declare interface Stat
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly ino: bigint;
旧版本信息:
类名:Stat;
方法or属性:readonly ino: bigint;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly mode: number;
旧版本信息:
类名:Stat;
方法or属性:readonly mode: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly uid: number;
旧版本信息:
类名:Stat;
方法or属性:readonly uid: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly gid: number;
旧版本信息:
类名:Stat;
方法or属性:readonly gid: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly size: number;
旧版本信息:
类名:Stat;
方法or属性:readonly size: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly atime: number;
旧版本信息:
类名:Stat;
方法or属性:readonly atime: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly mtime: number;
旧版本信息:
类名:Stat;
方法or属性:readonly mtime: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:readonly ctime: number;
旧版本信息:
类名:Stat;
方法or属性:readonly ctime: number;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isBlockDevice(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isBlockDevice(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isCharacterDevice(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isCharacterDevice(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isDirectory(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isDirectory(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isFIFO(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isFIFO(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isFile(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isFile(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isSocket(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isSocket(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts
跨平台能力有变化 类名:Stat;
方法or属性:isSymbolicLink(): boolean;
旧版本信息:
类名:Stat;
方法or属性:isSymbolicLink(): boolean;
新版本信息:crossplatform
@ohos.file.fs.d.ts