新增获取输入法列表和显示选择输入法对话框功能

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-02-12 14:40:25 +08:00
parent 15c07001f8
commit 2468103723
22 changed files with 648 additions and 25 deletions
@@ -232,6 +232,30 @@ using namespace MessageID;
mImms->prepareInput(data);
}
void InputMethodController::DisplayOptionalInputMethod()
{
IMSA_HILOGI("InputMethodController::DisplayOptionalInputMethod");
if (mImms == nullptr) {
return;
}
MessageParcel data;
if (!(data.WriteInterfaceToken(mImms->GetDescriptor()))) {
return;
}
mImms->displayOptionalInputMethod(data);
}
std::vector<InputMethodProperty*> InputMethodController::ListInputMethod()
{
IMSA_HILOGI("InputMethodController::listInputMethod");
std::vector<InputMethodProperty*> properties;
if (mImms == nullptr) {
return properties;
}
mImms->listInputMethod(&properties);
return properties;
}
void InputMethodController::StartInput(sptr<InputClientStub> &client)
{
IMSA_HILOGI("InputMethodController::StartInput");