Class: Toybox.Media.ContentDelegate
- Inherits:
- 
    Toybox.Lang.Object
    
Overview
A delegate object that the user implements to respond to certain media events from the native media player
Instance Method Summary collapse
- 
      
      getContentIterator()    as Media.ContentIterator or Null
      
  
    Return a ContentIterator object for the system to use to iterate over media tracks. 
- 
      
      onAdAction(adContext as Lang.Object)    as Void
      
  
    Respond to a user ad click. 
- 
      
      onCustomButton(button as Media.CustomButton)    as Void
      
  
    Handle a CustomButton being selected in the Media Player. 
- 
      
      onRepeat()    as Void
      
  
    Respond to a command to change repeat mode. 
- 
      
      onShuffle()    as Void
      
  
    Respond to a command to turn shuffle on or off. 
- 
      
      onSong(contentRefId as Lang.Object, songEvent as Media.SongEvent, playbackPosition as Lang.Number or Media.PlaybackPosition)    as Void
      
  
    Handle a notification from a system that a song has been played. 
- 
      
      onThumbsDown(contentRefId as Lang.Object)    as Void
      
  
    Respond to a thumbs-down action. 
- 
      
      onThumbsUp(contentRefId as Lang.Object)    as Void
      
  
    Respond to a thumbs-up action. 
- 
      
      resetContentIterator()    as Media.ContentIterator or Null
      
  
    Reset the ContentIterator to the beginning of the current playlist. 
Instance Method Details
getContentIterator() as Media.ContentIterator or Null
Return a ContentIterator object for the system to use to iterate over media tracks.
onAdAction(adContext as Lang.Object) as Void
Respond to a user ad click.
onCustomButton(button as Media.CustomButton) as Void
Handle a CustomButton being selected in the Media Player
onRepeat() as Void
Respond to a command to change repeat mode
onShuffle() as Void
Respond to a command to turn shuffle on or off.
onSong(contentRefId as Lang.Object, songEvent as Media.SongEvent, playbackPosition as Lang.Number or Media.PlaybackPosition) as Void
Handle a notification from a system that a song has been played.
onThumbsDown(contentRefId as Lang.Object) as Void
Respond to a thumbs-down action.
The thumbs-down option is native to the device media player. When a user selects the thumbs-down function on the device, a corresponding onThumbsDown() event is sent to application.
onThumbsUp(contentRefId as Lang.Object) as Void
Respond to a thumbs-up action.
The thumbs-up option is native to the device media player. When a user selects the thumbs-up function on the device, a corresponding onThumbsUp() event is sent to the application.
resetContentIterator() as Media.ContentIterator or Null
Reset the ContentIterator to the beginning of the current playlist.