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

    duration

    Duration of the animation, in seconds; as defined by the sender

    width

    Width of the animation

    height

    Height of the animation

    fileName

    Original name of the file; as defined by the sender

    mimeType

    MIME type of the file, usually “image/gif” or “video/mp4”

    minithumbnail

    Animation minithumbnail; may be null

    thumbnail

    Animation thumbnail; may be null

    animation

    File containing the animation