IT. Expert System.

Android Reference

MtpObjectInfo


android.mtp

Class MtpObjectInfo



  • public final class MtpObjectInfo
    extends Object
    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.
    • Method Detail

      • getObjectHandle

        public final int getObjectHandle()
        Returns the object handle for the MTP object
        Returns:
        the object handle
      • getStorageId

        public final int getStorageId()
        Returns the storage ID for the MTP object's storage unit
        Returns:
        the storage ID
      • getFormat

        public final int getFormat()
        Returns the format code for the MTP object
        Returns:
        the format code
      • getCompressedSize

        public final int getCompressedSize()
        Returns the size of the MTP object
        Returns:
        the object size
      • getThumbFormat

        public final int getThumbFormat()
        Returns the format code for the MTP object's thumbnail Will be zero for objects with no thumbnail
        Returns:
        the thumbnail format code
      • getThumbCompressedSize

        public final int getThumbCompressedSize()
        Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail
        Returns:
        the thumbnail size
      • getThumbPixWidth

        public final int getThumbPixWidth()
        Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
        Returns:
        the thumbnail width
      • getThumbPixHeight

        public final int getThumbPixHeight()
        Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
        Returns:
        the thumbnail height
      • getImagePixWidth

        public final int getImagePixWidth()
        Returns the width of the MTP object in pixels Will be zero for non-image objects
        Returns:
        the image width
      • getImagePixHeight

        public final int getImagePixHeight()
        Returns the height of the MTP object in pixels Will be zero for non-image objects
        Returns:
        the image height
      • getImagePixDepth

        public final int getImagePixDepth()
        Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects
        Returns:
        the image depth
      • getParent

        public final int getParent()
        Returns the object handle for the object's parent Will be zero for the root directory of a storage unit
        Returns:
        the object's parent
      • getAssociationDesc

        public final int getAssociationDesc()
        Returns the association description for the MTP object Will be zero objects that are not of format MtpConstants.FORMAT_ASSOCIATION
        Returns:
        the object's association description
      • getSequenceNumber

        public final int getSequenceNumber()
        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.
        Returns:
        the object's sequence number
      • getName

        public final String getName()
        Returns the name of the MTP object
        Returns:
        the object's name
      • getDateCreated

        public final long getDateCreated()
        Returns the creation date of the MTP object The value is represented as milliseconds since January 1, 1970
        Returns:
        the object's creation date
      • getDateModified

        public final long getDateModified()
        Returns the modification date of the MTP object The value is represented as milliseconds since January 1, 1970
        Returns:
        the object's modification date
      • getKeywords

        public final String getKeywords()
        Returns a comma separated list of keywords for the MTP object
        Returns:
        the object's keyword list


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 166 / 158695317. Delta: 0.03022 с