VersaPlayerControlsBehaviour

open class VersaPlayerControlsBehaviour

Undocumented

  • VersaPlayerControls instance being controlled

    Declaration

    Swift

    public var controls: VersaPlayerControls
  • Whether controls are bieng displayed

    Declaration

    Swift

    public var showingControls: Bool
  • Whether controls should be hidden when showingControls is true

    Declaration

    Swift

    public var shouldHideControls: Bool
  • Whether controls should be shown when showingControls is false

    Declaration

    Swift

    public var shouldShowControls: Bool
  • Elapsed time between controls being shown and current time

    Declaration

    Swift

    public var elapsedTime: TimeInterval
  • Last time when controls were shown

    Declaration

    Swift

    public var activationTime: TimeInterval
  • At which TimeInterval controls hide automatically

    Declaration

    Swift

    public var deactivationTimeInterval: TimeInterval
  • Custom deactivation block

    Declaration

    Swift

    public var deactivationBlock: ((VersaPlayerControls) -> Void)?
  • Custom activation block

    Declaration

    Swift

    public var activationBlock: ((VersaPlayerControls) -> Void)?
  • Constructor

    Declaration

    Swift

    public init(with controls: VersaPlayerControls)

    Parameters

    controls

    VersaPlayerControls to be controlled.

  • Update ui based on time

    Declaration

    Swift

    open func update(with time: TimeInterval)

    Parameters

    time

    TimeInterval to check whether to update controls.

  • Default activation block

    Declaration

    Swift

    open func defaultActivationBlock()
  • Default deactivation block

    Declaration

    Swift

    open func defaultDeactivationBlock()
  • Hide the controls

    Declaration

    Swift

    open func hide()
  • Show the controls

    Declaration

    Swift

    open func show()