detectUpdate

open suspend fun detectUpdate()

Invoked by DetectUpdateTriggerWorker and by the default implementation of checkForUpdates to allow the handler to detect if a new update is available.

How and when the 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.

Note: If the default implementation of checkForUpdates is used, this method must suspend until the update detection is complete.