detectUpdate

open suspend fun detectUpdate(componentId: UpdateComponentId)

Invoked by DetectUpdateTriggerWorker for a given componentId to allow the service to detect if a new update is available.

How and when a service implementation detects if a new update is available for a component is entirely up to the implementation. Implementing this method is optional.

Note: This method will not be automatically called. Use DetectUpdateTriggerWorker to invoke this method. The DetectUpdateTriggerWorker will consider the check to be successful as soon as this method returns. The method must suspend while the update check is ongoing to unblock other function calls. If the function throws, the update check is considered failed and the DetectUpdateTriggerWorker work will then be rescheduled according to its backoff criteria.