BackupAgent.FullBackupFileAsync(File, FullBackupDataOutput) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs FullBackupFile(File, FullBackupDataOutput) on a thread pool thread.
public System.Threading.Tasks.Task FullBackupFileAsync(Java.IO.File? file, Android.App.Backup.FullBackupDataOutput? output);
member this.FullBackupFileAsync : Java.IO.File * Android.App.Backup.FullBackupDataOutput -> System.Threading.Tasks.Task
Parameters
- file
- File
The file to back up. It must exist and be readable by the caller.
- output
- FullBackupDataOutput
The destination for the file data and metadata.
Returns
A task that represents completion of the call to FullBackupFile.
Remarks
This .NET wrapper uses Task.Run to call the synchronous method. Await the task before reusing or disposing of the file or output, or returning from the backup callback. Files excluded by the backup system are still ignored.
.NET task wrapper implementation.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.