Documentation
¶
Overview ¶
Package mtp provides Go bindings for android.mtp.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Device
- func (m *Device) Close() error
- func (m *Device) DeleteObject(arg0 int32) (bool, error)
- func (m *Device) GetDeviceId() (int32, error)
- func (m *Device) GetDeviceInfo() (*jni.Object, error)
- func (m *Device) GetDeviceName() (string, error)
- func (m *Device) GetObject(arg0 int32, arg1 int32) (*jni.Object, error)
- func (m *Device) GetObjectHandles(arg0 int32, arg1 int32, arg2 int32) (*jni.Object, error)
- func (m *Device) GetObjectInfo(arg0 int32) (*jni.Object, error)
- func (m *Device) GetParent(arg0 int32) (int64, error)
- func (m *Device) GetPartialObject(arg0 int32, arg1 int64, arg2 int64, arg3 *jni.Object) (int64, error)
- func (m *Device) GetPartialObject64(arg0 int32, arg1 int64, arg2 int64, arg3 *jni.Object) (int64, error)
- func (m *Device) GetStorageId(arg0 int32) (int64, error)
- func (m *Device) GetStorageIds() (*jni.Object, error)
- func (m *Device) GetStorageInfo(arg0 int32) (*jni.Object, error)
- func (m *Device) GetThumbnail(arg0 int32) (*jni.Object, error)
- func (m *Device) ImportFile2(arg0 int32, arg1 *jni.Object) (bool, error)
- func (m *Device) ImportFile2_1(arg0 int32, arg1 string) (bool, error)
- func (m *Device) Open(arg0 *jni.Object) (bool, error)
- func (m *Device) ReadEvent(arg0 *jni.Object) (*jni.Object, error)
- func (m *Device) SendObject(arg0 int32, arg1 int64, arg2 *jni.Object) (bool, error)
- func (m *Device) SendObjectInfo(arg0 *jni.Object) (*jni.Object, error)
- func (m *Device) ToString() (string, error)
- type DeviceInfo
- func (m *DeviceInfo) GetEventsSupported() (*jni.Object, error)
- func (m *DeviceInfo) GetManufacturer() (string, error)
- func (m *DeviceInfo) GetModel() (string, error)
- func (m *DeviceInfo) GetOperationsSupported() (*jni.Object, error)
- func (m *DeviceInfo) GetSerialNumber() (string, error)
- func (m *DeviceInfo) GetVersion() (string, error)
- func (m *DeviceInfo) IsEventSupported(arg0 int32) (bool, error)
- func (m *DeviceInfo) IsOperationSupported(arg0 int32) (bool, error)
- type Event
- func (m *Event) GetDevicePropCode() (int32, error)
- func (m *Event) GetEventCode() (int32, error)
- func (m *Event) GetObjectFormatCode() (int32, error)
- func (m *Event) GetObjectHandle() (int32, error)
- func (m *Event) GetObjectPropCode() (int32, error)
- func (m *Event) GetParameter1() (int32, error)
- func (m *Event) GetParameter2() (int32, error)
- func (m *Event) GetParameter3() (int32, error)
- func (m *Event) GetStorageId() (int32, error)
- func (m *Event) GetTransactionId() (int32, error)
- type ObjectInfo
- func (m *ObjectInfo) GetAssociationDesc() (int32, error)
- func (m *ObjectInfo) GetAssociationType() (int32, error)
- func (m *ObjectInfo) GetCompressedSize() (int32, error)
- func (m *ObjectInfo) GetCompressedSizeLong() (int64, error)
- func (m *ObjectInfo) GetDateCreated() (int64, error)
- func (m *ObjectInfo) GetDateModified() (int64, error)
- func (m *ObjectInfo) GetFormat() (int32, error)
- func (m *ObjectInfo) GetImagePixDepth() (int32, error)
- func (m *ObjectInfo) GetImagePixDepthLong() (int64, error)
- func (m *ObjectInfo) GetImagePixHeight() (int32, error)
- func (m *ObjectInfo) GetImagePixHeightLong() (int64, error)
- func (m *ObjectInfo) GetImagePixWidth() (int32, error)
- func (m *ObjectInfo) GetImagePixWidthLong() (int64, error)
- func (m *ObjectInfo) GetKeywords() (string, error)
- func (m *ObjectInfo) GetName() (string, error)
- func (m *ObjectInfo) GetObjectHandle() (int32, error)
- func (m *ObjectInfo) GetParent() (int32, error)
- func (m *ObjectInfo) GetProtectionStatus() (int32, error)
- func (m *ObjectInfo) GetSequenceNumber() (int32, error)
- func (m *ObjectInfo) GetSequenceNumberLong() (int64, error)
- func (m *ObjectInfo) GetStorageId() (int32, error)
- func (m *ObjectInfo) GetThumbCompressedSize() (int32, error)
- func (m *ObjectInfo) GetThumbCompressedSizeLong() (int64, error)
- func (m *ObjectInfo) GetThumbFormat() (int32, error)
- func (m *ObjectInfo) GetThumbPixHeight() (int32, error)
- func (m *ObjectInfo) GetThumbPixHeightLong() (int64, error)
- func (m *ObjectInfo) GetThumbPixWidth() (int32, error)
- func (m *ObjectInfo) GetThumbPixWidthLong() (int64, error)
- type ObjectInfoBuilder
- func (m *ObjectInfoBuilder) Build() (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetAssociationDesc(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetAssociationType(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetCompressedSize(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetDateCreated(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetDateModified(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetFormat(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetImagePixDepth(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetImagePixHeight(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetImagePixWidth(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetKeywords(arg0 string) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetName(arg0 string) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetObjectHandle(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetParent(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetProtectionStatus(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetSequenceNumber(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetStorageId(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetThumbCompressedSize(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetThumbFormat(arg0 int32) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetThumbPixHeight(arg0 int64) (*jni.Object, error)
- func (m *ObjectInfoBuilder) SetThumbPixWidth(arg0 int64) (*jni.Object, error)
- type StorageInfo
Constants ¶
const ( EventCancelTransaction = consts.EventCancelTransaction EventCaptureComplete = consts.EventCaptureComplete EventDeviceInfoChanged = consts.EventDeviceInfoChanged EventDevicePropChanged = consts.EventDevicePropChanged EventDeviceReset = consts.EventDeviceReset EventObjectAdded = consts.EventObjectAdded EventObjectInfoChanged = consts.EventObjectInfoChanged EventObjectPropChanged = consts.EventObjectPropChanged EventObjectPropDescChanged = consts.EventObjectPropDescChanged EventObjectReferencesChanged = consts.EventObjectReferencesChanged EventObjectRemoved = consts.EventObjectRemoved EventRequestObjectTransfer = consts.EventRequestObjectTransfer EventStorageInfoChanged = consts.EventStorageInfoChanged EventStoreAdded = consts.EventStoreAdded EventStoreFull = consts.EventStoreFull EventStoreRemoved = consts.EventStoreRemoved EventUndefined = consts.EventUndefined EventUnreportedStatus = consts.EventUnreportedStatus AssociationTypeGenericFolder = consts.AssociationTypeGenericFolder Format3gpContainer = consts.Format3gpContainer FormatAac = consts.FormatAac FormatAbstractAudioAlbum = consts.FormatAbstractAudioAlbum FormatAbstractAudioPlaylist = consts.FormatAbstractAudioPlaylist FormatAbstractAvPlaylist = consts.FormatAbstractAvPlaylist FormatAbstractDocument = consts.FormatAbstractDocument FormatAbstractImageAlbum = consts.FormatAbstractImageAlbum FormatAbstractMediacast = consts.FormatAbstractMediacast FormatAbstractMultimediaAlbum = consts.FormatAbstractMultimediaAlbum FormatAbstractVideoAlbum = consts.FormatAbstractVideoAlbum FormatAbstractVideoPlaylist = consts.FormatAbstractVideoPlaylist FormatAiff = consts.FormatAiff FormatAsf = consts.FormatAsf FormatAssociation = consts.FormatAssociation FormatAsxPlaylist = consts.FormatAsxPlaylist FormatAudible = consts.FormatAudible FormatAvi = consts.FormatAvi FormatBmp = consts.FormatBmp FormatDefined = consts.FormatDefined FormatDng = consts.FormatDng FormatDpof = consts.FormatDpof FormatExecutable = consts.FormatExecutable FormatExifJpeg = consts.FormatExifJpeg FormatFlac = consts.FormatFlac FormatGif = consts.FormatGif FormatHtml = consts.FormatHtml FormatJfif = consts.FormatJfif FormatJp2 = consts.FormatJp2 FormatJpx = consts.FormatJpx FormatM3uPlaylist = consts.FormatM3uPlaylist FormatMp2 = consts.FormatMp2 FormatMp3 = consts.FormatMp3 FormatMp4Container = consts.FormatMp4Container FormatMpeg = consts.FormatMpeg FormatMplPlaylist = consts.FormatMplPlaylist FormatMsExcelSpreadsheet = consts.FormatMsExcelSpreadsheet FormatMsPowerpointPresentation = consts.FormatMsPowerpointPresentation FormatMsWordDocument = consts.FormatMsWordDocument FormatOgg = consts.FormatOgg FormatPict = consts.FormatPict FormatPlsPlaylist = consts.FormatPlsPlaylist FormatPng = consts.FormatPng FormatScript = consts.FormatScript FormatText = consts.FormatText FormatTiff = consts.FormatTiff FormatTiffEp = consts.FormatTiffEp FormatUndefined = consts.FormatUndefined FormatUndefinedAudio = consts.FormatUndefinedAudio FormatUndefinedCollection = consts.FormatUndefinedCollection FormatUndefinedDocument = consts.FormatUndefinedDocument FormatUndefinedFirmware = consts.FormatUndefinedFirmware FormatUndefinedVideo = consts.FormatUndefinedVideo FormatWav = consts.FormatWav FormatWindowsImageFormat = consts.FormatWindowsImageFormat FormatWma = consts.FormatWma FormatWmv = consts.FormatWmv FormatWplPlaylist = consts.FormatWplPlaylist FormatXmlDocument = consts.FormatXmlDocument OperationCloseSession = consts.OperationCloseSession OperationCopyObject = consts.OperationCopyObject OperationDeleteObject = consts.OperationDeleteObject OperationFormatStore = consts.OperationFormatStore OperationGetDeviceInfo = consts.OperationGetDeviceInfo OperationGetDevicePropDesc = consts.OperationGetDevicePropDesc OperationGetDevicePropValue = consts.OperationGetDevicePropValue OperationGetNumObjects = consts.OperationGetNumObjects OperationGetObject = consts.OperationGetObject OperationGetObjectHandles = consts.OperationGetObjectHandles OperationGetObjectInfo = consts.OperationGetObjectInfo OperationGetObjectPropsSupported = consts.OperationGetObjectPropsSupported OperationGetObjectPropDesc = consts.OperationGetObjectPropDesc OperationGetObjectPropValue = consts.OperationGetObjectPropValue OperationGetObjectReferences = consts.OperationGetObjectReferences OperationGetPartialObject = consts.OperationGetPartialObject OperationGetPartialObject64 = consts.OperationGetPartialObject64 OperationGetStorageInfo = consts.OperationGetStorageInfo OperationGetStorageIDs = consts.OperationGetStorageIDs OperationGetThumb = consts.OperationGetThumb OperationInitiateCapture = consts.OperationInitiateCapture OperationInitiateOpenCapture = consts.OperationInitiateOpenCapture OperationMoveObject = consts.OperationMoveObject OperationOpenSession = consts.OperationOpenSession OperationPowerDown = consts.OperationPowerDown OperationResetDevice = consts.OperationResetDevice OperationResetDevicePropValue = consts.OperationResetDevicePropValue OperationSelfTest = consts.OperationSelfTest OperationSendObject = consts.OperationSendObject OperationSendObjectInfo = consts.OperationSendObjectInfo OperationSetDevicePropValue = consts.OperationSetDevicePropValue OperationSetObjectPropValue = consts.OperationSetObjectPropValue OperationSetObjectProtection = consts.OperationSetObjectProtection OperationSetObjectReferences = consts.OperationSetObjectReferences OperationSkip = consts.OperationSkip OperationTerminateOpenCapture = consts.OperationTerminateOpenCapture ProtectionStatusNone = consts.ProtectionStatusNone ProtectionStatusNonTransferableData = consts.ProtectionStatusNonTransferableData ProtectionStatusReadOnly = consts.ProtectionStatusReadOnly ProtectionStatusReadOnlyData = consts.ProtectionStatusReadOnlyData )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
Device wraps android.mtp.MtpDevice.
func (*Device) DeleteObject ¶
DeleteObject calls android.mtp.MtpDevice.deleteObject.
func (*Device) GetDeviceId ¶
GetDeviceId calls android.mtp.MtpDevice.getDeviceId.
func (*Device) GetDeviceInfo ¶
GetDeviceInfo calls android.mtp.MtpDevice.getDeviceInfo.
func (*Device) GetDeviceName ¶
GetDeviceName calls android.mtp.MtpDevice.getDeviceName.
func (*Device) GetObjectHandles ¶
GetObjectHandles calls android.mtp.MtpDevice.getObjectHandles.
func (*Device) GetObjectInfo ¶
GetObjectInfo calls android.mtp.MtpDevice.getObjectInfo.
func (*Device) GetPartialObject ¶
func (m *Device) GetPartialObject( arg0 int32, arg1 int64, arg2 int64, arg3 *jni.Object, ) (int64, error)
GetPartialObject calls android.mtp.MtpDevice.getPartialObject.
func (*Device) GetPartialObject64 ¶
func (m *Device) GetPartialObject64( arg0 int32, arg1 int64, arg2 int64, arg3 *jni.Object, ) (int64, error)
GetPartialObject64 calls android.mtp.MtpDevice.getPartialObject64.
func (*Device) GetStorageId ¶
GetStorageId calls android.mtp.MtpDevice.getStorageId.
func (*Device) GetStorageIds ¶
GetStorageIds calls android.mtp.MtpDevice.getStorageIds.
func (*Device) GetStorageInfo ¶
GetStorageInfo calls android.mtp.MtpDevice.getStorageInfo.
func (*Device) GetThumbnail ¶
GetThumbnail calls android.mtp.MtpDevice.getThumbnail.
func (*Device) ImportFile2 ¶
ImportFile2 calls android.mtp.MtpDevice.importFile.
func (*Device) ImportFile2_1 ¶
ImportFile2_1 calls android.mtp.MtpDevice.importFile.
func (*Device) SendObject ¶
SendObject calls android.mtp.MtpDevice.sendObject.
func (*Device) SendObjectInfo ¶
SendObjectInfo calls android.mtp.MtpDevice.sendObjectInfo.
type DeviceInfo ¶
DeviceInfo wraps android.mtp.MtpDeviceInfo.
func (*DeviceInfo) GetEventsSupported ¶
func (m *DeviceInfo) GetEventsSupported() (*jni.Object, error)
GetEventsSupported calls android.mtp.MtpDeviceInfo.getEventsSupported.
func (*DeviceInfo) GetManufacturer ¶
func (m *DeviceInfo) GetManufacturer() (string, error)
GetManufacturer calls android.mtp.MtpDeviceInfo.getManufacturer.
func (*DeviceInfo) GetModel ¶
func (m *DeviceInfo) GetModel() (string, error)
GetModel calls android.mtp.MtpDeviceInfo.getModel.
func (*DeviceInfo) GetOperationsSupported ¶
func (m *DeviceInfo) GetOperationsSupported() (*jni.Object, error)
GetOperationsSupported calls android.mtp.MtpDeviceInfo.getOperationsSupported.
func (*DeviceInfo) GetSerialNumber ¶
func (m *DeviceInfo) GetSerialNumber() (string, error)
GetSerialNumber calls android.mtp.MtpDeviceInfo.getSerialNumber.
func (*DeviceInfo) GetVersion ¶
func (m *DeviceInfo) GetVersion() (string, error)
GetVersion calls android.mtp.MtpDeviceInfo.getVersion.
func (*DeviceInfo) IsEventSupported ¶
func (m *DeviceInfo) IsEventSupported(arg0 int32) (bool, error)
IsEventSupported calls android.mtp.MtpDeviceInfo.isEventSupported.
func (*DeviceInfo) IsOperationSupported ¶
func (m *DeviceInfo) IsOperationSupported(arg0 int32) (bool, error)
IsOperationSupported calls android.mtp.MtpDeviceInfo.isOperationSupported.
type Event ¶
Event wraps android.mtp.MtpEvent.
func (*Event) GetDevicePropCode ¶
GetDevicePropCode calls android.mtp.MtpEvent.getDevicePropCode.
func (*Event) GetEventCode ¶
GetEventCode calls android.mtp.MtpEvent.getEventCode.
func (*Event) GetObjectFormatCode ¶
GetObjectFormatCode calls android.mtp.MtpEvent.getObjectFormatCode.
func (*Event) GetObjectHandle ¶
GetObjectHandle calls android.mtp.MtpEvent.getObjectHandle.
func (*Event) GetObjectPropCode ¶
GetObjectPropCode calls android.mtp.MtpEvent.getObjectPropCode.
func (*Event) GetParameter1 ¶
GetParameter1 calls android.mtp.MtpEvent.getParameter1.
func (*Event) GetParameter2 ¶
GetParameter2 calls android.mtp.MtpEvent.getParameter2.
func (*Event) GetParameter3 ¶
GetParameter3 calls android.mtp.MtpEvent.getParameter3.
func (*Event) GetStorageId ¶
GetStorageId calls android.mtp.MtpEvent.getStorageId.
func (*Event) GetTransactionId ¶
GetTransactionId calls android.mtp.MtpEvent.getTransactionId.
type ObjectInfo ¶
ObjectInfo wraps android.mtp.MtpObjectInfo.
func (*ObjectInfo) GetAssociationDesc ¶
func (m *ObjectInfo) GetAssociationDesc() (int32, error)
GetAssociationDesc calls android.mtp.MtpObjectInfo.getAssociationDesc.
func (*ObjectInfo) GetAssociationType ¶
func (m *ObjectInfo) GetAssociationType() (int32, error)
GetAssociationType calls android.mtp.MtpObjectInfo.getAssociationType.
func (*ObjectInfo) GetCompressedSize ¶
func (m *ObjectInfo) GetCompressedSize() (int32, error)
GetCompressedSize calls android.mtp.MtpObjectInfo.getCompressedSize.
func (*ObjectInfo) GetCompressedSizeLong ¶
func (m *ObjectInfo) GetCompressedSizeLong() (int64, error)
GetCompressedSizeLong calls android.mtp.MtpObjectInfo.getCompressedSizeLong.
func (*ObjectInfo) GetDateCreated ¶
func (m *ObjectInfo) GetDateCreated() (int64, error)
GetDateCreated calls android.mtp.MtpObjectInfo.getDateCreated.
func (*ObjectInfo) GetDateModified ¶
func (m *ObjectInfo) GetDateModified() (int64, error)
GetDateModified calls android.mtp.MtpObjectInfo.getDateModified.
func (*ObjectInfo) GetFormat ¶
func (m *ObjectInfo) GetFormat() (int32, error)
GetFormat calls android.mtp.MtpObjectInfo.getFormat.
func (*ObjectInfo) GetImagePixDepth ¶
func (m *ObjectInfo) GetImagePixDepth() (int32, error)
GetImagePixDepth calls android.mtp.MtpObjectInfo.getImagePixDepth.
func (*ObjectInfo) GetImagePixDepthLong ¶
func (m *ObjectInfo) GetImagePixDepthLong() (int64, error)
GetImagePixDepthLong calls android.mtp.MtpObjectInfo.getImagePixDepthLong.
func (*ObjectInfo) GetImagePixHeight ¶
func (m *ObjectInfo) GetImagePixHeight() (int32, error)
GetImagePixHeight calls android.mtp.MtpObjectInfo.getImagePixHeight.
func (*ObjectInfo) GetImagePixHeightLong ¶
func (m *ObjectInfo) GetImagePixHeightLong() (int64, error)
GetImagePixHeightLong calls android.mtp.MtpObjectInfo.getImagePixHeightLong.
func (*ObjectInfo) GetImagePixWidth ¶
func (m *ObjectInfo) GetImagePixWidth() (int32, error)
GetImagePixWidth calls android.mtp.MtpObjectInfo.getImagePixWidth.
func (*ObjectInfo) GetImagePixWidthLong ¶
func (m *ObjectInfo) GetImagePixWidthLong() (int64, error)
GetImagePixWidthLong calls android.mtp.MtpObjectInfo.getImagePixWidthLong.
func (*ObjectInfo) GetKeywords ¶
func (m *ObjectInfo) GetKeywords() (string, error)
GetKeywords calls android.mtp.MtpObjectInfo.getKeywords.
func (*ObjectInfo) GetName ¶
func (m *ObjectInfo) GetName() (string, error)
GetName calls android.mtp.MtpObjectInfo.getName.
func (*ObjectInfo) GetObjectHandle ¶
func (m *ObjectInfo) GetObjectHandle() (int32, error)
GetObjectHandle calls android.mtp.MtpObjectInfo.getObjectHandle.
func (*ObjectInfo) GetParent ¶
func (m *ObjectInfo) GetParent() (int32, error)
GetParent calls android.mtp.MtpObjectInfo.getParent.
func (*ObjectInfo) GetProtectionStatus ¶
func (m *ObjectInfo) GetProtectionStatus() (int32, error)
GetProtectionStatus calls android.mtp.MtpObjectInfo.getProtectionStatus.
func (*ObjectInfo) GetSequenceNumber ¶
func (m *ObjectInfo) GetSequenceNumber() (int32, error)
GetSequenceNumber calls android.mtp.MtpObjectInfo.getSequenceNumber.
func (*ObjectInfo) GetSequenceNumberLong ¶
func (m *ObjectInfo) GetSequenceNumberLong() (int64, error)
GetSequenceNumberLong calls android.mtp.MtpObjectInfo.getSequenceNumberLong.
func (*ObjectInfo) GetStorageId ¶
func (m *ObjectInfo) GetStorageId() (int32, error)
GetStorageId calls android.mtp.MtpObjectInfo.getStorageId.
func (*ObjectInfo) GetThumbCompressedSize ¶
func (m *ObjectInfo) GetThumbCompressedSize() (int32, error)
GetThumbCompressedSize calls android.mtp.MtpObjectInfo.getThumbCompressedSize.
func (*ObjectInfo) GetThumbCompressedSizeLong ¶
func (m *ObjectInfo) GetThumbCompressedSizeLong() (int64, error)
GetThumbCompressedSizeLong calls android.mtp.MtpObjectInfo.getThumbCompressedSizeLong.
func (*ObjectInfo) GetThumbFormat ¶
func (m *ObjectInfo) GetThumbFormat() (int32, error)
GetThumbFormat calls android.mtp.MtpObjectInfo.getThumbFormat.
func (*ObjectInfo) GetThumbPixHeight ¶
func (m *ObjectInfo) GetThumbPixHeight() (int32, error)
GetThumbPixHeight calls android.mtp.MtpObjectInfo.getThumbPixHeight.
func (*ObjectInfo) GetThumbPixHeightLong ¶
func (m *ObjectInfo) GetThumbPixHeightLong() (int64, error)
GetThumbPixHeightLong calls android.mtp.MtpObjectInfo.getThumbPixHeightLong.
func (*ObjectInfo) GetThumbPixWidth ¶
func (m *ObjectInfo) GetThumbPixWidth() (int32, error)
GetThumbPixWidth calls android.mtp.MtpObjectInfo.getThumbPixWidth.
func (*ObjectInfo) GetThumbPixWidthLong ¶
func (m *ObjectInfo) GetThumbPixWidthLong() (int64, error)
GetThumbPixWidthLong calls android.mtp.MtpObjectInfo.getThumbPixWidthLong.
type ObjectInfoBuilder ¶
ObjectInfoBuilder wraps android.mtp.MtpObjectInfo$Builder.
func (*ObjectInfoBuilder) Build ¶
func (m *ObjectInfoBuilder) Build() (*jni.Object, error)
Build calls android.mtp.MtpObjectInfo$Builder.build.
func (*ObjectInfoBuilder) SetAssociationDesc ¶
func (m *ObjectInfoBuilder) SetAssociationDesc(arg0 int32) (*jni.Object, error)
SetAssociationDesc calls android.mtp.MtpObjectInfo$Builder.setAssociationDesc.
func (*ObjectInfoBuilder) SetAssociationType ¶
func (m *ObjectInfoBuilder) SetAssociationType(arg0 int32) (*jni.Object, error)
SetAssociationType calls android.mtp.MtpObjectInfo$Builder.setAssociationType.
func (*ObjectInfoBuilder) SetCompressedSize ¶
func (m *ObjectInfoBuilder) SetCompressedSize(arg0 int64) (*jni.Object, error)
SetCompressedSize calls android.mtp.MtpObjectInfo$Builder.setCompressedSize.
func (*ObjectInfoBuilder) SetDateCreated ¶
func (m *ObjectInfoBuilder) SetDateCreated(arg0 int64) (*jni.Object, error)
SetDateCreated calls android.mtp.MtpObjectInfo$Builder.setDateCreated.
func (*ObjectInfoBuilder) SetDateModified ¶
func (m *ObjectInfoBuilder) SetDateModified(arg0 int64) (*jni.Object, error)
SetDateModified calls android.mtp.MtpObjectInfo$Builder.setDateModified.
func (*ObjectInfoBuilder) SetFormat ¶
func (m *ObjectInfoBuilder) SetFormat(arg0 int32) (*jni.Object, error)
SetFormat calls android.mtp.MtpObjectInfo$Builder.setFormat.
func (*ObjectInfoBuilder) SetImagePixDepth ¶
func (m *ObjectInfoBuilder) SetImagePixDepth(arg0 int64) (*jni.Object, error)
SetImagePixDepth calls android.mtp.MtpObjectInfo$Builder.setImagePixDepth.
func (*ObjectInfoBuilder) SetImagePixHeight ¶
func (m *ObjectInfoBuilder) SetImagePixHeight(arg0 int64) (*jni.Object, error)
SetImagePixHeight calls android.mtp.MtpObjectInfo$Builder.setImagePixHeight.
func (*ObjectInfoBuilder) SetImagePixWidth ¶
func (m *ObjectInfoBuilder) SetImagePixWidth(arg0 int64) (*jni.Object, error)
SetImagePixWidth calls android.mtp.MtpObjectInfo$Builder.setImagePixWidth.
func (*ObjectInfoBuilder) SetKeywords ¶
func (m *ObjectInfoBuilder) SetKeywords(arg0 string) (*jni.Object, error)
SetKeywords calls android.mtp.MtpObjectInfo$Builder.setKeywords.
func (*ObjectInfoBuilder) SetName ¶
func (m *ObjectInfoBuilder) SetName(arg0 string) (*jni.Object, error)
SetName calls android.mtp.MtpObjectInfo$Builder.setName.
func (*ObjectInfoBuilder) SetObjectHandle ¶
func (m *ObjectInfoBuilder) SetObjectHandle(arg0 int32) (*jni.Object, error)
SetObjectHandle calls android.mtp.MtpObjectInfo$Builder.setObjectHandle.
func (*ObjectInfoBuilder) SetParent ¶
func (m *ObjectInfoBuilder) SetParent(arg0 int32) (*jni.Object, error)
SetParent calls android.mtp.MtpObjectInfo$Builder.setParent.
func (*ObjectInfoBuilder) SetProtectionStatus ¶
func (m *ObjectInfoBuilder) SetProtectionStatus(arg0 int32) (*jni.Object, error)
SetProtectionStatus calls android.mtp.MtpObjectInfo$Builder.setProtectionStatus.
func (*ObjectInfoBuilder) SetSequenceNumber ¶
func (m *ObjectInfoBuilder) SetSequenceNumber(arg0 int64) (*jni.Object, error)
SetSequenceNumber calls android.mtp.MtpObjectInfo$Builder.setSequenceNumber.
func (*ObjectInfoBuilder) SetStorageId ¶
func (m *ObjectInfoBuilder) SetStorageId(arg0 int32) (*jni.Object, error)
SetStorageId calls android.mtp.MtpObjectInfo$Builder.setStorageId.
func (*ObjectInfoBuilder) SetThumbCompressedSize ¶
func (m *ObjectInfoBuilder) SetThumbCompressedSize(arg0 int64) (*jni.Object, error)
SetThumbCompressedSize calls android.mtp.MtpObjectInfo$Builder.setThumbCompressedSize.
func (*ObjectInfoBuilder) SetThumbFormat ¶
func (m *ObjectInfoBuilder) SetThumbFormat(arg0 int32) (*jni.Object, error)
SetThumbFormat calls android.mtp.MtpObjectInfo$Builder.setThumbFormat.
func (*ObjectInfoBuilder) SetThumbPixHeight ¶
func (m *ObjectInfoBuilder) SetThumbPixHeight(arg0 int64) (*jni.Object, error)
SetThumbPixHeight calls android.mtp.MtpObjectInfo$Builder.setThumbPixHeight.
func (*ObjectInfoBuilder) SetThumbPixWidth ¶
func (m *ObjectInfoBuilder) SetThumbPixWidth(arg0 int64) (*jni.Object, error)
SetThumbPixWidth calls android.mtp.MtpObjectInfo$Builder.setThumbPixWidth.
type StorageInfo ¶
StorageInfo wraps android.mtp.MtpStorageInfo.
func (*StorageInfo) GetDescription ¶
func (m *StorageInfo) GetDescription() (string, error)
GetDescription calls android.mtp.MtpStorageInfo.getDescription.
func (*StorageInfo) GetFreeSpace ¶
func (m *StorageInfo) GetFreeSpace() (int64, error)
GetFreeSpace calls android.mtp.MtpStorageInfo.getFreeSpace.
func (*StorageInfo) GetMaxCapacity ¶
func (m *StorageInfo) GetMaxCapacity() (int64, error)
GetMaxCapacity calls android.mtp.MtpStorageInfo.getMaxCapacity.
func (*StorageInfo) GetStorageId ¶
func (m *StorageInfo) GetStorageId() (int32, error)
GetStorageId calls android.mtp.MtpStorageInfo.getStorageId.
func (*StorageInfo) GetVolumeIdentifier ¶
func (m *StorageInfo) GetVolumeIdentifier() (string, error)
GetVolumeIdentifier calls android.mtp.MtpStorageInfo.getVolumeIdentifier.