Function

simulateHotReload

Simulates hot reload of all current compositions by disposing all composed content and restarting compositions.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
@TestOnly public fun simulateHotReload(context: Any): Unit

Simulates hot reload of all current compositions by disposing all composed content and restarting compositions. Calling this method switches recomposer into hot reload mode. Test-only API, not for use in production.

Parameters

context context for disposal.