AspectRatioChangeEvent

@objc(THEOplayerAspectRatioChangeEvent)
public class AspectRatioChangeEvent : NSObject, EventProtocol

Thrown when the aspect ratio property of the player has changed.

  • Type of the event, defaults to “aspectratiochange”.

    Declaration

    Swift

    @objc
    public private(set) var type: String { get }
  • The date at which the event occured.

    Declaration

    Swift

    @objc
    public private(set) var date: Date { get }
  • The new AspectRatio of the view.

    Declaration

    Swift

    @objc
    public private(set) var aspectRatio: AspectRatio { get }