Skip to content

parseInputMethodState

Reduces dumpsys input_method to the handful of fields that say whether the IME is showing.

Import:

import { parseInputMethodState } from 'obsidian-integration-testing';

Signature:

function parseInputMethodState(dumpsysOutput: string): string

Parameters:

ParameterTypeDescription
dumpsysOutputstringRaw stdout of adb shell dumpsys input_method.

Returns: string — The interesting fields, trimmed and joined, or an empty string when none were reported.


Links to this page: