T

DCDFileManagerType

The native DCDFileManager module surface for reading, writing, and inspecting files.

type DCDFileManagerType = { getSize: UndocumentedNativeMethod; getVideoDimensions: UndocumentedNativeMethod; readAsset: UndocumentedNativeMethod; saveFileToGallery: UndocumentedNativeMethod; fileExists(path: string): Promise<boolean>; getConstants(): DCDFileManagerConstants; readFile(path: string, encoding: DCDFileManagerEncoding): Promise<string>; removeFile(type: "cache" | "documents", path: string): Promise<boolean>; writeFile(type: "cache" | "documents", path: string, data: string, encoding: DCDFileManagerEncoding): Promise<string> } & DCDFileManagerConstants