FileManager.EnqueueOperation(FileOperationRequest) 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.
Enqueues a new file operation request.
[Android.Runtime.Register("enqueueOperation", "(Landroid/os/storage/operations/FileOperationRequest;)Landroid/os/storage/operations/FileOperationEnqueueResult;", "", ApiSince=37)]
public Android.OS.Storage.Operations.FileOperationEnqueueResult EnqueueOperation(Android.OS.Storage.Operations.FileOperationRequest request);
[<Android.Runtime.Register("enqueueOperation", "(Landroid/os/storage/operations/FileOperationRequest;)Landroid/os/storage/operations/FileOperationEnqueueResult;", "", ApiSince=37)>]
member this.EnqueueOperation : Android.OS.Storage.Operations.FileOperationRequest -> Android.OS.Storage.Operations.FileOperationEnqueueResult
Parameters
- request
- FileOperationRequest
The FileOperationRequest describing the operation (source, target,
mode).
Returns
A FileOperationEnqueueResult containing the Request ID (on success) or an
error code (on failure).
- Attributes
Remarks
Enqueues a new file operation request.
This method validates the request and submits it to the system service. It returns immediately, without waiting for the operation to execute.
If the system is too busy to accept the request, the returned result will have an error code of FileOperationResult.ERROR_BUSY.
Note: Granular failure reporting is limited to the first 200 failures encountered. For operations where reporting every individual failure is required, it is recommended to break large tasks into multiple requests of 200 files or fewer.
Android reference for android.os.storage.FileManager.enqueueOperation.
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.