Interface FeatureService


  • public interface FeatureService
    This service allows Features to control the lifecycle of other Features.
    • Method Detail

      • install

        byte[] install​(java.io.File featureFile)
        Installs the feature of the given feature file.
        Parameters:
        featureFile - a feature file
        Returns:
        the UUID of the installed feature
      • uninstall

        void uninstall​(byte[] featureUID)
        Uninstalls the feature identified by the given UUID.
        Parameters:
        featureUID - the UUID of an installed feature
      • addUpdateListener

        void addUpdateListener​(UpdateListener listener)
        Adds the given UpdateListener to the list of listeners that are notified when an app has been updated on the device.
        Parameters:
        listener - the new listener to add
      • removeUpdateListener

        void removeUpdateListener​(UpdateListener listener)
        Removes the given UpdateListener from the list of listeners that are notified when an app has been updated on the device.

        Does nothing if the listener is not registered.

        Parameters:
        listener - the listener to be removed