Udostępnij za pośrednictwem


MtpObjectInfo Class

Definition

This class encapsulates information about an object on an MTP device.

[Android.Runtime.Register("android/mtp/MtpObjectInfo", DoNotGenerateAcw=true)]
public sealed class MtpObjectInfo : Java.Lang.Object
[<Android.Runtime.Register("android/mtp/MtpObjectInfo", DoNotGenerateAcw=true)>]
type MtpObjectInfo = class
    inherit Object
Inheritance
MtpObjectInfo
Attributes

Remarks

This class encapsulates information about an object on an MTP device. This corresponds to the ObjectInfo Dataset described in section 5.3.1 of the MTP specification.

Java documentation for android.mtp.MtpObjectInfo.

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.

Properties

AssociationDesc

Returns the association description for the MTP object Will be zero objects that are not of format android.mtp.MtpConstants#FORMAT_ASSOCIATION

AssociationType

Returns the association type for the MTP object Will be zero objects that are not of format android.mtp.MtpConstants#FORMAT_ASSOCIATION For directories the association type is typically android.mtp.MtpConstants#ASSOCIATION_TYPE_GENERIC_FOLDER

Class

Returns the runtime class of this Object.

(Inherited from Object)
CompressedSize

Returns the size of the MTP object

CompressedSizeLong

Returns the size of the MTP object

DateCreated

Returns the creation date of the MTP object The value is represented as milliseconds since January 1, 1970

DateModified

Returns the modification date of the MTP object The value is represented as milliseconds since January 1, 1970

Format

Returns the format code for the MTP object

Handle

The handle to the underlying Android instance.

(Inherited from Object)
ImagePixDepth

Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects

ImagePixDepthLong

Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects

ImagePixHeight

Returns the height of the MTP object in pixels Will be zero for non-image objects

ImagePixHeightLong

Returns the height of the MTP object in pixels Will be zero for non-image objects

ImagePixWidth

Returns the width of the MTP object in pixels Will be zero for non-image objects

ImagePixWidthLong

Returns the width of the MTP object in pixels Will be zero for non-image objects

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Keywords

Returns a comma separated list of keywords for the MTP object

Name

Returns the name of the MTP object

ObjectHandle

Returns the object handle for the MTP object

Parent

Returns the object handle for the object's parent Will be zero for the root directory of a storage unit

PeerReference (Inherited from Object)
ProtectionStatus

Returns the protection status for the MTP object Possible values are:

        &lt;ul&gt;
        &lt;li&gt; <code data-dev-comment-type="c">android.mtp.MtpConstants#PROTECTION_STATUS_NONE</code>&lt;li&gt; <code data-dev-comment-type="c">android.mtp.MtpConstants#PROTECTION_STATUS_READ_ONLY</code>&lt;li&gt; <code data-dev-comment-type="c">android.mtp.MtpConstants#PROTECTION_STATUS_NON_TRANSFERABLE_DATA</code>&lt;/ul&gt;
SequenceNumber

Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras.

SequenceNumberLong

Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras.

StorageId

Returns the storage ID for the MTP object's storage unit

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThumbCompressedSize

Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail

ThumbCompressedSizeLong

Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail

ThumbFormat

Returns the format code for the MTP object's thumbnail Will be zero for objects with no thumbnail

ThumbPixHeight

Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail

ThumbPixHeightLong

Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail

ThumbPixWidth

Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail

ThumbPixWidthLong

Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to