add switch napi fuction

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan
2022-07-05 12:16:44 +08:00
parent 2a937f009f
commit 607a9195d0
6 changed files with 105 additions and 0 deletions
@@ -433,5 +433,14 @@ using namespace MessageID;
mAgent->SetCallingWindow(windowId);
return;
}
int32_t InputMethodController::SwitchInputMethod(InputMethodProperty *target)
{
IMSA_HILOGI("InputMethodController::SwitchInputMethod");
if (!mImms) {
return false;
}
return mImms->SwitchInputMethod(target);
}
} // namespace MiscServices
} // namespace OHOS