Interface ComponentService


  • public interface ComponentService
    This service allows Features to register activities, watchfaces and complication data sources.
    • 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.