Class ThemeDownloadService
-
- All Implemented Interfaces:
public final class ThemeDownloadService extends MobileService
Represents the service to handle theme downloading
-
-
Field Summary
Fields Modifier and Type Field Description private Application
application
private String
apiKey
-
Constructor Summary
Constructors Constructor Description ThemeDownloadService(Context context)
-
Method Summary
Modifier and Type Method Description Unit
reset()
Resets the mobile service to the state that just initialized. final File
getThemeFile()
final File
getLightLogo()
final File
getDarkLogo()
final ServiceResult<List<String>>
downloadTheme(String serviceUrl, String appID, Boolean silent)
Download the theme. final ServiceResult<List<String>>
downloadTheme(String host, String appID, String protocol, Integer port, Boolean silent)
Download the theme. -
Methods inherited from class com.sap.cloud.mobile.foundation.mobileservices.MobileService
enableNetworkPolicy, getApiKey, getApplication, init, isApplicationInitialized, mayStartNewProcess, onStateChange, setApiKey, setApplication
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
reset
Unit reset()
Resets the mobile service to the state that just initialized.
-
getThemeFile
final File getThemeFile()
-
getLightLogo
final File getLightLogo()
-
getDarkLogo
final File getDarkLogo()
-
downloadTheme
final ServiceResult<List<String>> downloadTheme(String serviceUrl, String appID, Boolean silent)
Download the theme.zip file with specified serviceUrl, appID and silent, unzip and save the content. Return the file names extracted. The saved file is located in the internal storage of this mobile application, the client code can then access the file with: <code>val file = File(context.filesDir, filename)</code>
-
downloadTheme
final ServiceResult<List<String>> downloadTheme(String host, String appID, String protocol, Integer port, Boolean silent)
Download the theme.zip file with specified host, appID, protocol, port and silent, unzip and save the content. Return the file names extracted. The saved file is located in the internal storage of this mobile application, the client code can then access the file with: <code>val file = File(context.filesDir, filename)</code>
-
-
-
-