Skip to main content

Interface: PluginRuntime

Execution environment and feature availability for one addon invocation.

Properties

platform

platform: PluginRuntimePlatform

Host platform for this invocation.


mode

mode: PluginRuntimeMode

Whether the invocation is attached to the interactive app or durable work.


reason?

optional reason?: PluginRuntimeReason

Why this execution started. Interactive lifecycle calls may omit it.


capabilities

capabilities: PluginRuntimeCapabilities

Capabilities that may safely be used during this invocation.


deadline?

optional deadline?: number

Unix timestamp in milliseconds before which the current slice should finish.

Methods

shouldYield()

shouldYield(): boolean

True shortly before the current background slice must yield.

Returns

boolean


requestContinuation()

requestContinuation(): void

Ask the Android scheduler to continue this task in another safe slice.

Returns

void