warmup

open override fun warmup(lens: LensesComponent.Lens, launchData: LensesComponent.Lens.LaunchData, callback: Consumer<Boolean>)

Prepares a specified lens for quick activation by applying it to preload resources without rendering it to the screen.

Warmup is limited to the first frame; resources loaded after this will not be preloaded. Multiple lenses can be warmed up, but doing so may impact the performance of the currently applied lens. All warmed-up lenses are cleared when a new lens is applied.

The operation is async with the result provided as success or failure flag to the callback.

Since

1.45.0