-
public class RemoteControlStorageClass manages storage of remote control configuration and supportive data - fetched time, max age, etc.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringRC_TIMESTAMPpublic final static StringRC_MAX_AGEprivate RemoteConfigurationactiveConfigprivate longconfigFetchedTimeprivate RemoteConfigurationpreviousConfig
-
Constructor Summary
Constructors Constructor Description RemoteControlStorage(AppsFlyerPreferences preferences)
-
Method Summary
Modifier and Type Method Description RemoteConfigurationgetActiveConfig()longgetConfigFetchedTime()RemoteConfigurationgetPreviousConfig()voidsaveAndApplyRemoteConfiguration(RemoteConfiguration config, long fetchedTime, long maxAgeSeconds)Updates configuration and saves it to persistent storage longgetConfigMaxAgeSeconds()-
-
Constructor Detail
-
RemoteControlStorage
RemoteControlStorage(AppsFlyerPreferences preferences)
-
-
Method Detail
-
getActiveConfig
@Nullable() RemoteConfiguration getActiveConfig()
-
getConfigFetchedTime
@Nullable() long getConfigFetchedTime()
-
getPreviousConfig
@Nullable() RemoteConfiguration getPreviousConfig()
-
saveAndApplyRemoteConfiguration
void saveAndApplyRemoteConfiguration(RemoteConfiguration config, long fetchedTime, long maxAgeSeconds)
Updates configuration and saves it to persistent storage
- Parameters:
config- new configuration to store in cache
-
getConfigMaxAgeSeconds
long getConfigMaxAgeSeconds()
-
-
-
-