Class NetworkOptionsImpl
- java.lang.Object
-
- es.situm.sdk.configuration.network.NetworkOptionsImpl
-
- All Implemented Interfaces:
NetworkOptions
public class NetworkOptionsImpl extends java.lang.Object implements NetworkOptions
This class implements NetworkOptions. It is used to configure network related configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkOptionsImpl.Builder-
Nested classes/interfaces inherited from interface es.situm.sdk.configuration.network.NetworkOptions
NetworkOptions.CacheStrategy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkOptions.CacheStrategygetCacheStrategy()Defines which data source takes priority, server or cache.java.lang.BooleangetPreloadImages()Specifies whether images should be preloaded if possible.
-
-
-
Method Detail
-
getCacheStrategy
public NetworkOptions.CacheStrategy getCacheStrategy()
Description copied from interface:NetworkOptionsDefines which data source takes priority, server or cache. If null, SDK will use default behaviour.- Specified by:
getCacheStrategyin interfaceNetworkOptions
-
getPreloadImages
public java.lang.Boolean getPreloadImages()
Description copied from interface:NetworkOptionsSpecifies whether images should be preloaded if possible. If null, SDK will use default behaviour.- Specified by:
getPreloadImagesin interfaceNetworkOptions
-
-