useBackToFrontEffect

fun useBackToFrontEffect(vararg deps: Any?, effect: () -> Unit)

Description: 进入后台再次回到前台时执行Effect,不同于官方 API,只在再进入时才执行。 第一次渲染(不执行)-> 进入后台在返回(执行)。

Effect is executed when entering the background and returning to the foreground. Different from the official API, it is only executed when re-entering.

First rendering (not executed) -> enter the background and return (executed)