Package 

Class OtaService

  • All Implemented Interfaces:

    
    public class OtaService
    
                        

    Ota service operations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static synchronized void initialize(Context context, SDKOptions sdkOptions, OtaServiceSettings otaServiceSettings) Initialize OtaService based on the given configuration.
      static synchronized void initialize(Context context, SDKOptions sdkOptions) Initialize OtaService based on the given configuration.
      static synchronized void shutdown() Stop this service and release all of its resources.
      static synchronized void reset() Clear all existing areas with OTA data.
      static synchronized HomeAreaClient getHomeAreaClient() Gets an instance of HomeAreaClient.
      static synchronized SubRegionAreaClient getSubRegionAreaClient() Gets an instance of SubRegionAreaClient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • initialize

         static synchronized void initialize(Context context, SDKOptions sdkOptions, OtaServiceSettings otaServiceSettings)

        Initialize OtaService based on the given configuration.

        Parameters:
        context - Android context in order to initialize service.
        sdkOptions - SDK options in order to initialize service.
        otaServiceSettings - OTA service settings in order to initialize service.
      • initialize

         static synchronized void initialize(Context context, SDKOptions sdkOptions)

        Initialize OtaService based on the given configuration.

        Parameters:
        context - Android context in order to initialize service.
        sdkOptions - SDK options in order to initialize service.
      • shutdown

         static synchronized void shutdown()

        Stop this service and release all of its resources.

        Ongoing OTA data update would be aborted if there is any. After shutdown() is called, this service eventually stops functioning and future actions on any of its interfaces/clients can lead to undefined behaviors.

      • reset

         static synchronized void reset()

        Clear all existing areas with OTA data.

        Ongoing OTA data update would be aborted if there is any. Note: initialize need be called before calling this method.