PlatformTextInputMethodTestOverride

Functions summary

Unit

This function is deprecated. Use InterceptPlatformTextInput instead

Cmn

Functions

PlatformTextInputMethodTestOverride

@ExperimentalTestApi
@Composable
fun PlatformTextInputMethodTestOverride(
    sessionHandler: PlatformTextInputSession,
    content: @Composable () -> Unit
): Unit

Installs a custom PlatformTextInputSession implementation to run when PlatformTextInputSession.startInputMethod is called by text editors inside content.

Parameters
sessionHandler: PlatformTextInputSession

The PlatformTextInputSession to use to handle input method requests. This object does not need to worry about synchronizing calls to PlatformTextInputSession.startInputMethod – this composable will handle the session management the same way as in production.

content: @Composable () -> Unit

The composable content for which to override the input method handler.