rememberUiBoundCoroutineScope
expect fun rememberUiBoundCoroutineScope(getContext: @DisallowComposableCalls () -> CoroutineContext = {
EmptyCoroutineContext
}): CoroutineScope
Like androidx.compose.runtime.rememberCoroutineScope but also makes a platform-specific UI context available in the coroutine context.
On Android this makes org.multipaz.context.UiContext available in the coroutine-context and callers can use org.multipaz.context.UiContext.Companion.current to get a android.content.Context object for which android.content.Context.getActivity will return the Activity the coroutine is bound to.
On iOS this is equivalent to androidx.compose.runtime.rememberCoroutineScope.
Return
the CoroutineScope.
Parameters
getContext
optional context.