Thumbnail

public class Thumbnail

A data type represents the thumbnail of this local file. The thumbnail typically is an image file to provide preview of the local file without opening.

Since

1.4.0
  • The local path of the thumbnail file to be uploaded.

    Declaration

    Swift

    public let path: String
  • The width of the thumbnail.

    Declaration

    Swift

    public let width: Int
  • The height of the thumbnail.

    Declaration

    Swift

    public let height: Int
  • The size in bytes of the thumbnail.

    Declaration

    Swift

    public let size: UInt64
  • The MIME type of thumbnail.

    Declaration

    Swift

    public let mime: String
  • LocalFile thumbnail constructor.

    Since

    1.4.0

    Declaration

    Swift

    public init?(path: String, mime: String? = nil, width: Int, height: Int)

    Parameters

    path

    the local path of the thumbnail file.

    mine

    the MIME type of the thumbnail.

    width

    the width of the thumbnail.

    height

    the height of the thumbnail.