mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
@@ -213,8 +213,8 @@ namespace MiscServices {
|
||||
*/
|
||||
extern "C" __attribute__((constructor)) void RegisterModule()
|
||||
{
|
||||
IMSA_HILOGI("RegisterModule() is called!");
|
||||
napi_module_register(&inputMethodEngineModule);
|
||||
IMSA_HILOGI("RegisterModule() is called!");
|
||||
napi_module_register(&inputMethodEngineModule);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1182,7 +1182,9 @@ namespace MiscServices {
|
||||
want.SetElementName("com.example.kikakeyboard", "com.example.kikakeyboard.MainAbility");
|
||||
sptr<InputMethodAbilityConnectionStub> stub(new (std::nothrow) InputMethodAbilityConnectionStub(0));
|
||||
sptr<AAFwk::AbilityConnectionProxy> connCallback = new (std::nothrow) AAFwk::AbilityConnectionProxy(stub);
|
||||
GetAbilityManagerService()->StartAbility(want);
|
||||
std::shared_ptr<AAFwk::AbilityStartSetting> setting = AAFwk::AbilityStartSetting::GetEmptySetting();
|
||||
setting->AddProperty(AAFwk::AbilityStartSetting::WINDOW_MODE_KEY, std::to_string(AAFwk::AbilityWindowConfiguration::MULTI_WINDOW_DISPLAY_FLOATING));
|
||||
GetAbilityManagerService()->StartAbility(want, *setting, nullptr, -1);
|
||||
}
|
||||
|
||||
sptr<AAFwk::IAbilityManager> PerUserSession::GetAbilityManagerService()
|
||||
|
||||
Reference in New Issue
Block a user