Application

public enum Application

Application information and control (Kodi Namespace & Kodi Global Type)

  • The properties of the application (Global Kodi Type)

    See more

    Declaration

    Swift

    enum Property

getItem

  • getItem(type:id:) Asynchronous

    Get an item from the application (SwiftlyKodi API)

    Declaration

    Swift

    public static func getItem(type: Library.Media, id: Library.ID) async -> (any KodiItem)?
  • getProperties() Asynchronous

    Retrieves the properties of the application (Kodi API)

    Declaration

    Swift

    public static func getProperties() async -> Application.Property.Value

    Return Value

    The Value of the application

  • setMute() Asynchronous

    Toggle mute/unmute (Kodi API)

    Declaration

    Swift

    public static func setMute() async
  • setVolume(volume:) Asynchronous

    Set the current volume (Kodi API)

    Declaration

    Swift

    public static func setVolume(volume: Double) async

    Parameters

    volume

    The new value for the volume