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
-
true
if the user accessing this file is its owner,false
otherwise.Declaration
Swift
public let isOwnedByUser: Bool
-
true
if a thumbnail can be generated for this file,false
otherwise.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.
-
true
if this file’s media isMedia.uncategorized
,false
otherwise.Declaration
Swift
open var isUncategorized: Bool { get }
-
true
if this file’s media isMedia.audio
,false
otherwise.Declaration
Swift
open var isAudio: Bool { get }
-
true
if this file’s media isMedia.image
,false
otherwise.Declaration
Swift
open var isImage: Bool { get }
-
true
if this file’s media isMedia.video
,false
otherwise.Declaration
Swift
open var isVideo: Bool { get }
-
true
if this file’s media isMedia.document
,false
otherwise.Declaration
Swift
open var isDocument: Bool { get }
-
true
if this file’s media isMedia.archive
,false
otherwise.Declaration
Swift
open var isArchive: Bool { get }
-
Declaration
Swift
open var description: String { get }