diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets index 54eeee8755a15da27ec0ddc4df67305983859383..c4f389eba0d54fbb616b45322aaf957d5fdc3cc2 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhost/entry/src/main/ets/MainAbility/pages/index.ets @@ -46,22 +46,22 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private publishOnUninstallCallBack() { + private publishOnUninstallCallBack = () => { console.debug("====>formOnUninstallEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets index 010c8e164b692d160c4511f2f113d55d43712b7d..767c0ff7fb9ba067241ad67673d155a99db9310b 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/index.ets @@ -46,17 +46,17 @@ struct Index { }; private subscriberDle; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostb") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets index 969c4c1bdade76fd48a6870ac3a622aefd99b4bf..5ba286fc463638c6143c5adb1c81b210eeb8eb63 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostc/entry/src/main/ets/MainAbility/pages/index.ets @@ -57,26 +57,26 @@ struct Index { events: ["FMS_TimeChange_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formsystemhostc formCastEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>[FormComponent] deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { return; @@ -90,7 +90,7 @@ struct Index { console.info("!!!====>[FormComponent] deleteCallBack end ====>"); } - private timeChangeCallBack(err, data) { + private timeChangeCallBack = (err, data) => { console.info("!!!====>[FormComponent] timeChangeCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets index 2668b47ef158158999edb38e16d6243cdbadd8d7..32f4a3bf7940a4ce16314165791467191ddab680 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostd/entry/src/main/ets/MainAbility/pages/index.ets @@ -50,26 +50,26 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formsystemhostc formCastEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostd") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets index 8eaf42ac8b3e569d536a781b0e92e7b15ac346b5..6303a481a96b5e47ccf632e473290b514c8e5813 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/index.ets @@ -55,27 +55,27 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private formOnDynamicRefreshCallBack() { + private formOnDynamicRefreshCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnDynamicRefreshEventk ====>"); } - private formOnRequestCallBack() { + private formOnRequestCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnRequestCallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets index 2b576e3c1c8fd2ac95832e110cf3e7a1b70c5860..6794ecc980b1c0e82313b5fb6f1531087c6c1eda 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/index.ets @@ -57,26 +57,26 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); } - private publishOnReleasedCallBack() { + private publishOnReleasedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); } - private publishOnUpdatedCallBack() { + private publishOnUpdatedCallBack = () => { this.canCreateForm = false; console.debug("====>formsystemhostc publishOnUpdatedCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostf") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets index e037471b283e4bfed89a387b6d3f24cdb9df772a..89d9c29a46595e8b58d215e0512e5f5b748d468d 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostg/entry/src/main/ets/MainAbility/pages/index.ets @@ -49,22 +49,22 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] formOnErrorEventCallBack ====>"); } - private publishOnDeletedCallBack() { + private publishOnDeletedCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] publishOnDeletedCallBack ====>"); } - private publishOnStateCallBack() { + private publishOnStateCallBack = () => { this.canCreateForm = false; console.debug("====>[FormComponent.host] publishOnStateCallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>[FormComponent.host] formOnAcquiredEventCallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>[FormComponent.host] deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostg") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets index 732bbe9e396cfb0b15ace9d91a050d0bf90c2cb3..7d7588e3a1f288fa5549fc454721e95c1f1c1243 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhosti/entry/src/main/ets/MainAbility/pages/index.ets @@ -45,18 +45,18 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.info("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.info("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.info("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets index f86495a3e4b1953adef5d3b64c2a9dfcbc5200e3..5199fd1785a6d621e258ef0f90908ffdd1206f6a 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostj/entry/src/main/ets/MainAbility/pages/index.ets @@ -45,18 +45,18 @@ struct Index { events: ["FMS_FormDelete_commonEvent"], }; - private publishOnErrorCallBack() { + private publishOnErrorCallBack = () => { this.canCreateForm = false; console.debug("====>formOnErrorEvent Publish CallBack ====>"); } - private publishOnAcquiredCallBack() { + private publishOnAcquiredCallBack = () => { console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); } - private publishCastCallBack() { + private publishCastCallBack = () => { console.debug("====>formCastEvent Publish CallBack ====>"); } - private deleteCallBack(err, data) { + private deleteCallBack = (err, data) => { console.info("!!!====>formsystemhostj deleteCallBack start:====>" + JSON.stringify(data)); if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostj") { return; diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets index c970518070b5892e9160114c7f6ea6a1cb588ea6..12d7ad236b2e6617e40c492dc340f24c8a6e27fa 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/index.ets @@ -67,19 +67,19 @@ struct Index { private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; private formOnReleasedEvent = "FMS_FormOnReleased_commonEvent"; - private onAcquiredCallback() { + private onAcquiredCallback = () => { console.info(`${this.TAG} onAcquiredCallback`); } - private onRequestCallback() { + private onRequestCallback = () => { console.info(`====>${this.TAG} onRequestCallback====>`); } - private onDeletedCallback() { + private onDeletedCallback = () => { console.info(`${this.TAG} onDeletedCallback`); } - private onReleasedCallback() { + private onReleasedCallback = () => { console.info(`====>${this.TAG} onReleasedCallback====>`); } diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets index c900acdf69687d0e5cbc835fc4c87757e23fbc1e..279ca31580b4e1a1b097b29a78450ae40109fb42 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/index.ets @@ -42,11 +42,11 @@ struct Index { private formOnRequestEvent = `FMS_FormOnRequest_commonEvent`; private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; - private onAcquiredCallback() { + private onAcquiredCallback = () => { console.info(`====>${this.TAG} onAcquiredCallback====>`); } - private onRequestCallback() { + private onRequestCallback = () => { console.info(`====>${this.TAG} onRequestCallback====>`); } diff --git a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets index 891b96832546dc14795b7b3afe11d329f6c3ae7e..7727fd57e45571f58206ea9668702be5e142ac62 100644 --- a/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/index.ets @@ -48,7 +48,7 @@ struct Index { private formOnRequestEvent = "FMS_FormOnRequest_commonEvent"; private formOnStateEvent = "FMS_FormOnState_commonEvent"; - private publishCallBack() { + private publishCallBack = () => { console.debug("====>formOnErrorEvent Publish CallBack ====>"); }