Class ThemeDownloadService

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Application application
      private String apiKey
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • ThemeDownloadService

        ThemeDownloadService(Context context)
    • Method Detail

      • reset

         Unit reset()

        Resets the mobile service to the state that just initialized.

      • 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>