一、
Provides APIs that let you interact directly with connected cameras and other devices, using the PTP (Picture Transfer Protocol) subset of the MTP (Media Transfer Protocol) specification.
Your application can
receive notifications when devices are attached and removed,
manage files and storage on those devices, and
transfer files and metadata from the devices.
二、class
MtpConstants:该类包含了定义MTP/PTP specifications中的常量值。
MtpDevice:this class represents an MTP or PTP device connected on the USB host bus.
MtpDeviceInfo:该类封装了一个MTP device的信息,information about an MTP device.
MtpObjectInfo:该类封装了一个MTP device上的一个object的信息,information about an object on an MTP device.
MtpStorageInfo:该类封装了一个MTP device上的一个存储单元的信息,information about a storage unit on an MTP device.