Companion
object Companion
Functions
Link copied to clipboard
fun create(writeopiaManager: WriteopiaManager, dispatcher: CoroutineDispatcher, selectionState: StateFlow<Boolean> = MutableStateFlow(false), keyboardEventFlow: Flow<KeyboardEvent?> = MutableStateFlow(null), stepsNormalizer: UnitsNormalizationMap = StepsMapNormalizationBuilder.reduceNormalizations {
defaultNormalizers()
}, movementHandler: MovementHandler = MovementHandler(), contentHandler: ContentHandler = ContentHandler(
stepsNormalizer = stepsNormalizer
), coroutineScope: CoroutineScope = CoroutineScope(EmptyCoroutineContext), backStackManager: BackstackManager = BackstackManager.create(
contentHandler,
movementHandler
), userId: suspend () -> String = { "no_user_id_provided" }): WriteopiaStateManager