Class: Toybox.Media.ActiveContent

Overview

Pairs a ContentRef with associated ContentMetadata information and allows a playback start position to be set.

Since:

API Level 3.0.0

Instance Method Summary collapse

Instance Method Details

getPlaybackStartPosition() as Lang.Number

Get the playback start position for media content

Returns:

Since:

API Level 3.0.0

initialize(contentRef as Media.ContentRef, metadata as Media.ContentMetadata, playbackStartPos as Lang.Number or Media.PlaybackPosition)

Constructor

Parameters:

  • contentRef(Media.ContentRef)

    A reference to media content

  • metadata(Media.ContentMetadata)

    The metadata associated with referenced media content

  • playbackStartPos(Lang.Number)

    Playback start position for the media content in seconds

Since:

API Level 3.0.0


Generated Dec 11, 2024, 8:58:43 AM