Animation
public struct Animation : Codable, Equatable, FunctionResult
Describes an animation file. The animation must be encoded in GIF or MPEG4 format
-
Duration of the animation, in seconds; as defined by the sender
Declaration
Swift
public let duration: Int32 -
Width of the animation
Declaration
Swift
public let width: Int32 -
Height of the animation
Declaration
Swift
public let height: Int32 -
Original name of the file; as defined by the sender
Declaration
Swift
public let fileName: String -
MIME type of the file, usually “image/gif” or “video/mp4”
Declaration
Swift
public let mimeType: String -
Animation minithumbnail; may be null
Declaration
Swift
public let minithumbnail: Minithumbnail? -
Animation thumbnail; may be null
Declaration
Swift
public let thumbnail: PhotoSize? -
File containing the animation
Declaration
Swift
public let animation: File -
Describes an animation file. The animation must be encoded in GIF or MPEG4 format
Declaration
Swift
public init(duration: Int32, width: Int32, height: Int32, fileName: String, mimeType: String, minithumbnail: Minithumbnail?, thumbnail: PhotoSize?, animation: File)Parameters
durationDuration of the animation, in seconds; as defined by the sender
widthWidth of the animation
heightHeight of the animation
fileNameOriginal name of the file; as defined by the sender
mimeTypeMIME type of the file, usually “image/gif” or “video/mp4”
minithumbnailAnimation minithumbnail; may be null
thumbnailAnimation thumbnail; may be null
animationFile containing the animation
View on GitHub
Install in Dash
Animation Structure Reference