feat(file): copy sync and async support (#10273)

This commit is contained in:
Osei Fortune
2023-04-21 23:36:01 -04:00
committed by GitHub
parent 1b17e23bb6
commit c63a50a196
9 changed files with 308 additions and 1 deletions

View File

@ -29,6 +29,10 @@
}
export module File {
export function copySync(src: string, dest: string, context: android.content.Context): boolean;
export function copy(src: java.io.InputStream, dest: java.io.OutputStream, callback: org.nativescript.widgets.Async.CompleteCallback, context: any): void;
export function copySync(src: java.io.InputStream, dest: java.io.OutputStream, context: any): boolean;
export function copy(src: string, dest: string, callback: org.nativescript.widgets.Async.CompleteCallback, context: android.content.Context): void;
export function readText(path: string, encoding: string, callback: CompleteCallback, context: any);
export function read(path: string, callback: CompleteCallback, context: any);
export function readBuffer(param0: string, param1: org.nativescript.widgets.Async.CompleteCallback, param2: any): void;