Class: Toybox.Application.AudioContentProviderApp
- Inherits:
-
Toybox.Application.AppBase
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.
Instance Method Summary collapse
-
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.
-
getPlaybackConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Override to provide the initial View and Input Delegate for configuring playback.
-
getProviderIconInfo() as Media.ProviderIconInfo or Null
Get audio provider icon information.
-
getSyncConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Override to provide the initial View and Input Delegate for configuring sync.
-
getSyncDelegate() as Communications.SyncDelegate or Null
deprecated
Get a SyncDelegate object that communicates sync status to the system for syncing media content to the device.
-
initialize()
Constructor.
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.
This method must be overridden in derived classes. If called, this function will cause the application to crash.
getPlaybackConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Override to provide the initial View and Input Delegate for configuring playback.
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.
getSyncConfigurationView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Override to provide the initial View and Input Delegate for configuring sync.
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 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.
initialize()
Constructor