MediaItem
@objcMembers
@objc(GSMediaItem)
public class MediaItem : NSObject
Media item in a media store.
-
Type of media.
See moreDeclaration
Swift
@objc(GSMediaItemType) public enum MediaType : Int, CustomStringConvertible
-
Type of resource.
See moreDeclaration
Swift
public enum ResourceType : Int, CustomStringConvertible
-
Media format.
See moreDeclaration
Swift
@objc(GSMediaItemFormat) public enum Format : Int, CustomStringConvertible
-
Photo mode.
See moreDeclaration
Swift
@objc(GSMediaItemPhotoMode) public enum PhotoMode : Int, CustomStringConvertible
-
Panorama type.
See moreDeclaration
Swift
@objc(GSMediaItemPanoramaType) public enum PanoramaType : Int, CustomStringConvertible
-
Available metadata types.
See moreDeclaration
Swift
@objc(GSMetadataType) public enum MetadataType : Int, CustomStringConvertible
-
Track of a media.
See moreDeclaration
Swift
@objc(GSMediaItemTrack) public enum Track : Int, CustomStringConvertible
-
A resource of a media.
See moreDeclaration
Swift
@objc(GSMediaItemResource) @objcMembers public class Resource : NSObject
-
Media unique identifier.
Declaration
Swift
public let uid: String
-
Media name.
Declaration
Swift
public let name: String
-
Media type.
Declaration
Swift
public let type: MediaType
-
Unique identifier of the run for this media.
Declaration
Swift
public let runUid: String
-
Custom identifier defined by application if available, otherwise nil. The custom identifier can be defined using
Camera2
componentCamera2MediaMetadata
.Declaration
Swift
public let customId: String?
-
Custom title defined by application if available, otherwise nil. The custom title can be defined using
Camera2
componentCamera2MediaMetadata
.Declaration
Swift
public let customTitle: String?
-
Media creation date.
Declaration
Swift
public let creationDate: Date
-
Drone boot date if available, otherwise nil.
Declaration
Swift
public let bootDate: Date?
-
Flight date if available, otherwise nil.
Declaration
Swift
public let flightDate: Date?
-
Expected number of resources in the media.
Declaration
Swift
public let expectedCount: UInt64?
-
Photo mode of the media (if available and media is a photo else nil).
Declaration
Swift
public let photoMode: MediaItem.PhotoMode?
-
Panorama type, if media is a panorama photo, otherwise nil.
Declaration
Swift
public let panoramaType: PanoramaType?
-
Media available resources.
Declaration
Swift
public let resources: [Resource]
-
Available metaData types in this Media.
Declaration
Swift
public let metadataTypes: Set<MetadataType>
-
Custom user data. Client can use this property to store custom data for this item, like it selection state. This property be kept between updates of a media list reference.
Declaration
Swift
public var userData: Any?
-
Photo mode, if available.
Note
- Value is meaningless if
hasPhotoMode
isNO
. - Only use in Objective-C.
- Value is meaningless if
-
Whether photo mode is available.
Note
Only use in Objective-C.Declaration
Swift
var hasPhotoMode: Bool { get }
-
Panorama type, if available.
Note
- Value is meaningless if
hasPanoramaType
isNO
. - Only use in Objective-C.
Declaration
Swift
@objc(panoramaType) var gsPanoramaType: PanoramaType { get }
- Value is meaningless if
-
Whether panorama is available.
Note
Only use in Objective-C.Declaration
Swift
var hasPanoramaType: Bool { get }
-
Expected count, if available.
Note
- Value is meaningless if
hasExpectedCount
isNO
. - Only use in Objective-C.
Declaration
Swift
@objc(expectedCount) var gsExpectedCount: UInt64 { get }
- Value is meaningless if
-
Whether expected count is available.
Note
- Value is meaningless if
hasPanoramaType
isNO
. - Only use in Objective-C.
Declaration
Swift
var hasExpectedCount: Bool { get }
- Value is meaningless if
-
Tells if a metadataType is present.
Note
Only use in Objective-C.
Declaration
Swift
@objc(hasMetadataType:) func hasMetadataType(_ metadataType: MetadataType) -> Bool
Parameters
metadataType
MetadataType to check
Return Value
true
if the metadataType type is present,false
otherwise