mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 09:59:57 +00:00
uiExtensionAbility组件获焦点
Signed-off-by: li-li-wang <wangliliang5@huawei.com>
This commit is contained in:
parent
aad0029913
commit
3014ddea64
@ -2,8 +2,8 @@
|
||||
"app": {
|
||||
"bundleName": "com.ohos.dlpmanager",
|
||||
"vendor": "example",
|
||||
"versionCode": 1000108,
|
||||
"versionName": "1.0.1.08",
|
||||
"versionCode": 1000109,
|
||||
"versionName": "1.0.1.09",
|
||||
"icon": "$media:app_icon",
|
||||
"label": "$string:app_name",
|
||||
"minAPIVersion": 12,
|
||||
|
@ -16,8 +16,8 @@
|
||||
"app": {
|
||||
"bundleName": "com.ohos.dlpmanager",
|
||||
"vendor": "example",
|
||||
"versionCode": 1000108,
|
||||
"versionName": "1.0.1.08",
|
||||
"versionCode": 1000109,
|
||||
"versionName": "1.0.1.09",
|
||||
"icon": "$media:app_icon",
|
||||
"label": "$string:app_name",
|
||||
"minAPIVersion": 12,
|
||||
|
@ -608,6 +608,15 @@ struct encryptedSharing {
|
||||
'ability.want.params.uiExtensionType': 'sys/commonUI'
|
||||
}
|
||||
})
|
||||
.id('cloudAccountLoginUI')
|
||||
.onRemoteReady(() => {
|
||||
try {
|
||||
HiLog.info(TAG, `requestFocus start`);
|
||||
this.getUIContext().getFocusController().requestFocus('cloudAccountLoginUI');
|
||||
} catch (error) {
|
||||
HiLog.error(TAG, `requestFocus failed. Cause: ${JSON.stringify(error)}`)
|
||||
}
|
||||
})
|
||||
.onReceive((data) => {
|
||||
HiLog.info(TAG, `data.status: ${JSON.stringify(data.status)}`);
|
||||
let res = data.result as Record<string, string>;
|
||||
|
Loading…
Reference in New Issue
Block a user