Metadata
A pCloud file.
-
The file category.
Declaration
Swift
public let media: Media -
The size of the file in bytes.
Declaration
Swift
public let size: UInt64 -
The MIME type of this file.
Declaration
Swift
public let contentType: String -
A number uniquely identifying the contents of this file.
Declaration
Swift
public let hash: UInt64 -
The file type.
Declaration
Swift
public let icon: Media.Icon -
trueif the user accessing this file is its owner,falseotherwise.Declaration
Swift
public let isOwnedByUser: Bool -
trueif a thumbnail can be generated for this file,falseotherwise.Declaration
Swift
public let hasThumbnail: Bool -
init(id:name:parentFolderId:createdTime:modifiedTime:isShared:icon:media:size:contentType:hash:isOwnedByUser:hasThumbnail:)Initializes a file with all fields of this class.
-
trueif this file’s media isMedia.uncategorized,falseotherwise.Declaration
Swift
open var isUncategorized: Bool { get } -
trueif this file’s media isMedia.audio,falseotherwise.Declaration
Swift
open var isAudio: Bool { get } -
trueif this file’s media isMedia.image,falseotherwise.Declaration
Swift
open var isImage: Bool { get } -
trueif this file’s media isMedia.video,falseotherwise.Declaration
Swift
open var isVideo: Bool { get } -
trueif this file’s media isMedia.document,falseotherwise.Declaration
Swift
open var isDocument: Bool { get } -
trueif this file’s media isMedia.archive,falseotherwise.Declaration
Swift
open var isArchive: Bool { get } -
Declaration
Swift
open var description: String { get }
View on GitHub
Metadata Class Reference