Package com.microej.wear.services
Interface ComponentService
-
public interface ComponentService
This service allows Features to register activities, watchfaces and complication data sources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComplicationDataSource[]
getComplicationDataSources()
Returns an array containing all the complication data sources.void
registerActivity(Activity activity)
Registers the given activity.void
registerComplicationDataSource(ComplicationDataSource source)
Registers the given complication data source.void
registerWatchface(Watchface watchface)
Registers the given watchface.
-
-
-
Method Detail
-
registerActivity
void registerActivity(Activity activity)
Registers the given activity.- Parameters:
activity
- the activity to register.
-
registerWatchface
void registerWatchface(Watchface watchface)
Registers the given watchface.- Parameters:
watchface
- the watchface to register.
-
registerComplicationDataSource
void registerComplicationDataSource(ComplicationDataSource source)
Registers the given complication data source.- Parameters:
source
- the source to register.
-
getComplicationDataSources
ComplicationDataSource[] getComplicationDataSources()
Returns an array containing all the complication data sources.- Returns:
- an array containing all the complication data sources.
-
-