IdleService
interface
stable
Service which configures custom 'on idle' behavior for Angular features like @defer.
API
interface IdleService { requestOnIdle(callback: (deadline?: IdleDeadline | undefined) => void, options?: IdleRequestOptions | undefined): number; cancelOnIdle(id: number): void;}
requestOnIdle
numberSchedule callback to be executed when the current application or browser is considered idle.
@paramcallback
(deadline?: IdleDeadline | undefined) => void@paramoptions
IdleRequestOptions | undefined@returns
numbercancelOnIdle
voidCancel a previously scheduled callback using the id associated with it.
@paramid
number@returns
voidJump to details