Class: Toybox.Media.PlaybackProfile
- Inherits:
-
Toybox.Lang.Object
Overview
Provides the media player with specific rules about what playback options are supported.
Instance Member Summary collapse
-
attemptSkipAfterThumbsDown as Lang.Boolean or Null
Defines if the current song is skipped if a thumbs-down operation is given.
-
playbackControls as Lang.Array<Media.PlaybackControl or Media.CustomButton or Media.SystemButton> or Null
Playback controls that should be rendered in the player.
-
playbackNotificationThreshold as Lang.Number or Null
The number of seconds a song must play to trigger a "played" notification.
-
playerColors as Media.PlayerColors or Null
The colors for the media player.
-
requirePlaybackNotification as Lang.Boolean or Null
Defines if the system notifies the app when each song is played.
-
skipBackwardTimeDelta as Lang.Number or Null
The number of seconds to move backward in a track during a skip backward event.
-
skipForwardTimeDelta as Lang.Number or Null
The number of seconds to move forward in a track during a skip forward event.
-
skipPreviousThreshold as Lang.Number or Null
The amount of time a song must be played so that pressing back restarts the track and requires a second back press to skip to the previous track in seconds.
Instance Attribute Details
var attemptSkipAfterThumbsDown as Lang.Boolean or Null
Defines if the current song is skipped if a thumbs-down operation is given
var playbackControls as Lang.Array<Media.PlaybackControl or Media.CustomButton or Media.SystemButton> or Null
Playback controls that should be rendered in the player.
This is an Array that holds a combination of PLAYBACK_CONTROL_*, CustomButton, and SystemButton values defined by the developer. The values in this Array determine which native media player control options are rendered and available to the end user of the current device. The first entry in the array may be used as a hotkey in the media player. This is device dependent.
var playbackNotificationThreshold as Lang.Number or Null
The number of seconds a song must play to trigger a "played" notification. A value of 0 means notify as soon as the song begins playing.
var playerColors as Media.PlayerColors or Null
The colors for the media player. If set to null
the
default colors that are device-dependent will be used.
var requirePlaybackNotification as Lang.Boolean or Null
Defines if the system notifies the app when each song is played
var skipBackwardTimeDelta as Lang.Number or Null
The number of seconds to move backward in a track during a skip backward event. If set to null
the
default value of 30 seconds will be used.
var skipForwardTimeDelta as Lang.Number or Null
The number of seconds to move forward in a track during a skip forward event. If set to null
the
default value of 30 seconds will be used.
var skipPreviousThreshold as Lang.Number or Null
The amount of time a song must be played so that pressing back
restarts the track and requires a second back press to skip to the
previous track in seconds. If set to null
a default value that is device-dependent will be used.