• int DownsizeRating(Int32 rating)
    Downsizes the rating value to a smaller scale (e.g. from 5 stars to 3 stars).
    Parameters
    NameDescription
    ratingThe rating value
  • void EnqueueAndPlay(IEnumerable<NeonScriptTrack> tracks)
    Enqueues the specified tracks and plays the first one immediately.
    Parameters
    NameDescription
    tracksThe tracks to enqueue
  • void EnqueueLast(IEnumerable<NeonScriptTrack> tracks)
    Enqueues the specified tracks to be played last in the play queue.
    Parameters
    NameDescription
    tracksThe tracks to enqueue
  • void EnqueueNext(IEnumerable<NeonScriptTrack> tracks)
    Enqueues the specified tracks to be played next in the play queue.
    Parameters
    NameDescription
    tracksThe tracks to enqueue
  • bool GetBooleanValue(String key)
    Gets a boolean value from the session properties by key.
    Parameters
    NameDescription
    keyThe key
  • int GetIntValue(String key)
    Gets an integer value from the session properties by key.
    Parameters
    NameDescription
    keyThe key
  • string GetStringValue(String key)
    Gets a string value from the session properties by key.
    Parameters
    NameDescription
    keyThe key
  • void Next()
    Skips to the next track in the play queue and plays it.
  • void Pause()
    Pauses the current playback.
  • void Play(Int32 index)
    Plays the track at the specified index in the play queue.
    Parameters
    NameDescription
    index
  • void Previous()
    Skips to the previous track in the play queue and plays it.
  • void RateCurrentTrack(Int32 newRating) obsolete
    Rates the currently active track with the specified rating value.
    Parameters
    NameDescription
    newRatingThe new rating
  • Task RateCurrentTrackAsync(Int32 newRating)
    Rates the currently active track with the specified rating value. (Async version)
    Parameters
    NameDescription
    newRatingThe new rating
  • void RateCurrentTrackSync(Int32 newRating)
    Rates the currently active track with the specified rating value.
    Parameters
    NameDescription
    newRatingThe new rating
  • void Resume()
    Resumes the current playback if it was paused.
  • void SetAutoEnqueue(Boolean active)
    Sets whether auto-enqueue should be active or not.
    Parameters
    NameDescription
    activeTrue or false
  • void SetBooleanValue(String key, Boolean value)
    Sets a boolean value in the session properties by key.
    Parameters
    NameDescription
    keyThe key
    valueThe value
  • void SetCrossfade(Boolean active)
    Sets whether crossfade should be active or not.
    Parameters
    NameDescription
    activeTrue or false
  • void SetCurrentTrackAsFavourite(Boolean isFavourite) obsolete
    Sets the current track as favourite or not, depending on the isFavourite parameter.
    Parameters
    NameDescription
    isFavouriteTrue or false
  • Task SetCurrentTrackAsFavouriteAsync(Boolean isFavourite)
    Sets the current track as favourite or not, depending on the isFavourite parameter. (Async version)
    Parameters
    NameDescription
    isFavouriteTrue or false
  • Task SetCurrentTrackAsFavouriteSync(Boolean isFavourite)
    Sets the current track as favourite or not, depending on the isFavourite parameter.
    Parameters
    NameDescription
    isFavouriteTrue or false
  • void SetIntValue(String key, Int32 value)
    Sets an integer value in the session properties by key.
    Parameters
    NameDescription
    keyThe key
    valueThe value
  • void SetPlayerVolume(Int32 newVolume)
    Sets the player volume to the specified value (0-100).
    Parameters
    NameDescription
    newVolumeThe value of the valume
  • void SetPosition(Double newPosition)
    Sets the position of the player to the specified value in seconds.
    Parameters
    NameDescription
    newPositionThe new position
  • void SetStringValue(String key, String value)
    Sets a string value in the session properties by key.
    Parameters
    NameDescription
    keyThe key
    valueThe value
  • void Stop()
    Stops the current playback and resets the player.
  • IEnumerable<NeonScriptTrack> TracksInPlayQueue()
    Returns all tracks in the play queue as a collection of NeonScriptTrack objects.
  • int UpsizeRating(Int32 rating)
    Upsizes the rating value to a larger scale (e.g. from 3 stars to 5 stars).
    Parameters
    NameDescription
    ratingThe rating value
  • int ActivePlayQueueIndex()
    Returns the index of the currently active play queue in the play queue business.
  • NeonScriptTrack ActiveTrack()
    Returns the currently active track in the player as a NeonScriptTrack object.
  • bool AutoEnqueueActive()
    Returns whether auto-enqueue is currently active or not.
  • bool CanPlayNext()
    Checks if the player can play the next track in the play queue.
  • bool CanPlayPrevious()
    Checks if the player can play the previous track in the play queue.
  • bool CrossfadeActive()
    Returns whether crossfade is currently active or not.
  • double CurrentPosition()
    Returns the current position of the player in seconds.
  • double Duration()
    Returns the duration of the currently active track in seconds.
  • NeonPlayerState PlayerState()
    Returns the current player state as a NeonPlayerState enum value. 0 = Undefined 1 = Playing 2 = Paused 3 = Stopped
  • int PlayerVolume()
    Get or set the current player volume as an integer value (0-100).
  • bool ShuffleActive()
    Returns whether shuffle mode is currently active in the play queue.
  • bool UsingLightTheme()
    Returns whether the application is using a light theme or not.