Class: Toybox.Application.AudioContentProviderApp

Overview

The base class for audio content provider apps.

This object extends AppBase and adds new methods for getting different initial view types based on what mode the app needs to be started in.

Since:

API Level 3.0.0

App Types:

  • Audio Content Provider

  • Background

Instance Method Summary collapse

Instance Method Details

getContentDelegate(args as Application.PersistableType) as Media.ContentDelegate

Get a ContentDelegate for use by the system to get and iterate through media content on the device.

Note:

This method must be overridden in derived classes. If called, this function will cause the application to crash.

Supported Devices:

Returns:

Since:

API Level 3.0.0

getPlaybackConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]

Override to provide the initial View and Input Delegate for configuring playback.

Note:

This method must be overridden in derived classes. If called, this function will cause the application to crash.

getProviderIconInfo() as Media.ProviderIconInfo or Null

Get audio provider icon information.

Supported Devices:

Returns:

Since:

API Level 3.0.0

getSyncConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]

Override to provide the initial View and Input Delegate for configuring sync.

Note:

This method must be overridden in derived classes. If called, this function will cause the application to crash.

getSyncDelegate() as Communications.SyncDelegate or Null

This has been deprecated

This method may be removed after System 9.

Get a SyncDelegate object that communicates sync status to the system for syncing media content to the device.

Returns:

See Also:

Since:

API Level 3.0.0

initialize()

Constructor

Since:

API Level 3.0.0


Generated Jun 6, 2024 10:31:52 AM