|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface ApplicationPreferenceManager
Interface for the application preference manager.
ApplicationPreferenceManagerImpl| Method Summary | |
|---|---|
SensorDeviceConfiguration |
getDeviceConfiguration(SensorDeviceIdentifier deviceIdentifier,
Context applicationContext)
Access to device configurations created from current device preferences |
LogLevelConfiguration |
getLogLevelConfiguration(Context applicationContext)
Access to log level configuration created from current log level preferences |
SinglePreference<LogLevelConfiguration> |
getLogLevelPreference()
Getter for log level preferences |
SensorDevicePreferences |
getPreferencesForDevice(SensorDeviceIdentifier deviceIdentifier)
Getter for specific device preferences |
ServiceConfiguration |
getServiceConfiguration(Context applicationContext)
Access to service configuration created from current service preferences |
ServicePreferences |
getServicePreferences()
Getter for the service preferences |
SharedPreferences |
getSharedPreferences(Context applicationContext)
Does return the shared preferences for the application context |
TimeProviderConfiguration |
getTimeProviderConfiguration(Context applicationContext)
Access to the time provider configuration created from current time provider preferences |
TimeProviderPreference |
getTimeProviderPreference()
Getter for time provider preferences |
String |
getUUIDConfiguration(Context applicationContext)
Access to the UUID configuration created from the current UUID preferences |
UUIDPreference |
getUUIDPreference()
Getter for UUID preferences |
void |
onDestroy()
Internal destroy method to clean up references |
void |
resetToDefaults(Context applicationContext)
Does reset the local stored changes for all preferences. |
void |
startListening(Context applicationContext)
Does start the listening for application preferences changes |
void |
stopListening(Context applicationContext)
Does stop the listening for application preferences changes |
void |
updateLogLevelConfiguration(Context applicationContext,
LogLevel logLevel)
Method to update the store log level preference |
void |
updatePreferenceState(Context applicationContext,
SinglePreference<Boolean> preference,
boolean state)
Method to change the state for a given boolean preference |
void |
updateUUIDConfiguration(Context applicationContext,
String sUuid)
Method to update the stored device UUID. |
| Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration |
|---|
registerEventObserver, removeAllObservers, unregisterEventObserver |
| Method Detail |
|---|
SharedPreferences getSharedPreferences(Context applicationContext)
applicationContext - the application context
void startListening(Context applicationContext)
applicationContext - the application contextvoid stopListening(Context applicationContext)
applicationContext - the application contextSinglePreference<LogLevelConfiguration> getLogLevelPreference()
void updateLogLevelConfiguration(Context applicationContext,
LogLevel logLevel)
applicationContext - the application contextlogLevel - the logLevel to update toUUIDPreference getUUIDPreference()
TimeProviderPreference getTimeProviderPreference()
SensorDevicePreferences getPreferencesForDevice(SensorDeviceIdentifier deviceIdentifier)
deviceIdentifier - the device identifier
ServicePreferences getServicePreferences()
LogLevelConfiguration getLogLevelConfiguration(Context applicationContext)
applicationContext - the application context
TimeProviderConfiguration getTimeProviderConfiguration(Context applicationContext)
applicationContext - the application context
SensorDeviceConfiguration getDeviceConfiguration(SensorDeviceIdentifier deviceIdentifier,
Context applicationContext)
deviceIdentifier - the device identifierapplicationContext - the application context
ServiceConfiguration getServiceConfiguration(Context applicationContext)
applicationContext - the application context
String getUUIDConfiguration(Context applicationContext)
applicationContext - the application context
void updateUUIDConfiguration(Context applicationContext,
String sUuid)
applicationContext - the application contextsUuid - the new UUID to store in preferencesvoid onDestroy()
void resetToDefaults(Context applicationContext)
applicationContext - the application context
void updatePreferenceState(Context applicationContext,
SinglePreference<Boolean> preference,
boolean state)
applicationContext - the application contextpreference - the preference to changestate - the state to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||