Android Guides | Samples

Android.Mtp Namespace

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.

Remarks

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.

Classes

TypeReason
AssociationTypeEnumerates values returned by several types.
MtpConstantsA class containing constants in the MTP and PTP specifications.
MtpDeviceThis class represents an MTP or PTP device connected on the USB host bus.
MtpDeviceInfoThis class encapsulates information about an MTP device.
MtpFormatEnumerates values returned by several types and taken as a parameter of the MtpConstants.IsAbstractObject, and MtpDevice.GetObjectHandles members.
MtpObjectInfoThis class encapsulates information about an object on an MTP device.
MtpStorageInfoThis class encapsulates information about a storage unit on an MTP device.
ProtectionStatusEnumerates values returned by several types.