Package com.microej.wear.services
Interface FeatureService
-
public interface FeatureServiceThis service allows Features to control the lifecycle of other Features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddUpdateListener(UpdateListener listener)Adds the givenUpdateListenerto the list of listeners that are notified when an app has been updated on the device.byte[]install(java.io.File featureFile)Installs the feature of the given feature file.voidremoveUpdateListener(UpdateListener listener)Removes the givenUpdateListenerfrom the list of listeners that are notified when an app has been updated on the device.voiduninstall(byte[] featureUID)Uninstalls the feature identified by the given UUID.
-
-
-
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 givenUpdateListenerto 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 givenUpdateListenerfrom 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
-
-