-
- All Implemented Interfaces:
public class OtaServiceOta service operations.
-
-
Method Summary
Modifier and Type Method Description static synchronized voidinitialize(Context context, SDKOptions sdkOptions, OtaServiceSettings otaServiceSettings)Initialize OtaService based on the given configuration. static synchronized voidinitialize(Context context, SDKOptions sdkOptions)Initialize OtaService based on the given configuration. static synchronized voidshutdown()Stop this service and release all of its resources. static synchronized voidreset()Clear all existing areas with OTA data. static synchronized HomeAreaClientgetHomeAreaClient()Gets an instance of HomeAreaClient. static synchronized SubRegionAreaClientgetSubRegionAreaClient()Gets an instance of SubRegionAreaClient. -
-
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.
-
getHomeAreaClient
static synchronized HomeAreaClient getHomeAreaClient()
Gets an instance of HomeAreaClient.
Note: initialize need be called before calling this method.
-
getSubRegionAreaClient
static synchronized SubRegionAreaClient getSubRegionAreaClient()
Gets an instance of SubRegionAreaClient.
Note: initialize need be called before calling this method.
-
-
-
-