Audios

public class Audios : NSObject

Wrapper class to manage Audio instances

  • Add a new Audio

    Declaration

    Swift

    @objc
    public func add(_ mediaLabel: String, duration: Int) -> Audio

    Parameters

    mediaLabel

    audio name

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:duration:﹚")
    @objc
    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

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, duration: Int) -> Audio

    Parameters

    mediaLabel

    audio name

    mediaTheme1

    audio first chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:mediaTheme2:duration:﹚")
    @objc
    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

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, mediaTheme2: String, duration: Int) -> Audio

    Parameters

    mediaLabel

    audio name

    mediaTheme1

    audio first chapter

    mediaTheme2

    audio second chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Add a new Audio

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:mediaTheme2:mediaTheme3:duration:﹚")
    @objc
    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

  • Add a new Audio

    Declaration

    Swift

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, mediaTheme2: String, mediaTheme3: String, duration: Int) -> Audio

    Parameters

    mediaLabel

    audio name

    mediaTheme1

    audio first chapter

    mediaTheme2

    audio second chapter

    mediaTheme3

    audio third chapter

    duration

    duration of the track in second

    Return Value

    the new Audio instance

  • Remove an audio by name

    Declaration

    Swift

    @objc
    public func remove(_ mediaLabel: String)

    Parameters

    mediaLabel

    audio identified by name

  • Remove all audios

    Declaration

    Swift

    @objc
    public func removeAll()