Document
public struct Document : Codable, Equatable, FunctionResult
Describes a document of any type
-
Original name of the file; as defined by the sender
Declaration
Swift
public let fileName: String -
MIME type of the file; as defined by the sender
Declaration
Swift
public let mimeType: String -
Document minithumbnail; may be null
Declaration
Swift
public let minithumbnail: Minithumbnail? -
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null
Declaration
Swift
public let thumbnail: PhotoSize? -
File containing the document
Declaration
Swift
public let document: File -
Describes a document of any type
Declaration
Swift
public init(fileName: String, mimeType: String, minithumbnail: Minithumbnail?, thumbnail: PhotoSize?, document: File)Parameters
fileNameOriginal name of the file; as defined by the sender
mimeTypeMIME type of the file; as defined by the sender
minithumbnailDocument minithumbnail; may be null
thumbnailDocument thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null
documentFile containing the document
View on GitHub
Install in Dash
Document Structure Reference