Audios

public class Audios: NSObject

Wrapper class to manage Audio instances

  • Add a new Audio

    Declaration

    Swift

    public func add(_ name:String, duration: Int) -> Audio

    Parameters

    name

    audio name

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, duration: Int) -> Audio

    Parameters

    name

    audio name

    chapter1

    audio first chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, chapter2: String, duration: Int) -> Audio

    Parameters

    name

    audio name

    chapter1

    audio first chapter

    chapter2

    audio second chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, chapter2: String, chapter3: String, duration: Int) -> Audio

    Parameters

    name

    audio name

    chapter1

    audio first chapter

    chapter2

    audio second chapter

    chapter3

    audio third chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Remove an audio by name

    Declaration

    Swift

    public func remove(_ name: String)

    Parameters

    name

    audio identified by name

  • Remove all audios

    Declaration

    Swift

    public func removeAll()