public abstract class ExpiredCallback extends Object
ExpiredCallback will be called to notify the application.
Implementation of this class requires that you rewrite the respective methods and define the processing logic for timeout of the delay duration.
SystemCapability.ResourceSchedule#BACKGROUND_TASK_MANAGER| 构造器 | 说明 |
|---|---|
ExpiredCallback() |
public abstract void onExpired()
You can call BackgroundTaskManager#requestSuspendDelay(String reason, ExpiredCallback cb) to request
delayed transition to the suspended state. This method will be called when the delayed transition to the
suspended state times out.