MtpDevice.ImportFile MtpDevice.ImportFile Method

Definition

Overloads

ImportFile(Int32, ParcelFileDescriptor) ImportFile(Int32, ParcelFileDescriptor)
ImportFile(Int32, String) ImportFile(Int32, String)

Copies the data for an object to a file in external storage.

ImportFile(Int32, ParcelFileDescriptor) ImportFile(Int32, ParcelFileDescriptor)

[Android.Runtime.Register("importFile", "(ILandroid/os/ParcelFileDescriptor;)Z", "", ApiSince=24)]
public bool ImportFile (int objectHandle, Android.OS.ParcelFileDescriptor descriptor);
member this.ImportFile : int * Android.OS.ParcelFileDescriptor -> bool

Parameters

objectHandle
Int32 Int32

Returns

Remarks

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.

ImportFile(Int32, String) ImportFile(Int32, String)

Copies the data for an object to a file in external storage.

[Android.Runtime.Register("importFile", "(ILjava/lang/String;)Z", "")]
public bool ImportFile (int objectHandle, string destPath);
member this.ImportFile : int * string -> bool

Parameters

objectHandle
Int32 Int32

handle of the object to read

destPath
String String

path to destination for the file transfer. This path should be in the external storage as defined by ExternalStorageDirectory

Returns

Remarks

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.

Applies to