ThumbnailV2Arg
public class ThumbnailV2Arg : CustomStringConvertible, JSONRepresentable
The ThumbnailV2Arg struct
-
Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path.
Declaration
Swift
public let resource: Files.PathOrLink
-
The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts.
Declaration
Swift
public let format: Files.ThumbnailFormat
-
The size for the thumbnail image.
Declaration
Swift
public let size: Files.ThumbnailSize
-
How to resize and crop the image to achieve the desired size.
Declaration
Swift
public let mode: Files.ThumbnailMode
-
Declaration
Swift
public var description: String { get }