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.AndroidUiContext available in the coroutine context and callers can use AndroidUiContext.current() to get a android.content.Context object for which 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 additional coroutine context elements (such as a org.multipaz.prompt.PromptModel).
See also
actual fun rememberUiBoundCoroutineScope(getContext: () -> ERROR CLASS: Symbol not found for CoroutineContext): ERROR CLASS: Symbol not found for CoroutineScope