다음을 통해 공유


MtpDevice.GetObjectHandles(Int32, MtpFormat, Int32) Method

Definition

Returns the list of object handles for all objects on the given storage unit, with the given format and parent.

[Android.Runtime.Register("getObjectHandles", "(III)[I", "")]
public int[]? GetObjectHandles (int storageId, Android.Mtp.MtpFormat format, int objectHandle);
[<Android.Runtime.Register("getObjectHandles", "(III)[I", "")>]
member this.GetObjectHandles : int * Android.Mtp.MtpFormat * int -> int[]

Parameters

storageId
Int32

the storage unit to query

format
MtpFormat

the format of the object to return, or zero for all formats

objectHandle
Int32

the parent object to query, -1 for the storage root, or zero for all objects

Returns

Int32[]

the object handles, or null if fetching object handles fails

Attributes

Remarks

Returns the list of object handles for all objects on the given storage unit, with the given format and parent. Information about each object can be accessed via #getObjectInfo.

Java documentation for android.mtp.MtpDevice.getObjectHandles(int, int, int).

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