提交 41deb4f5 编写于 作者: Y yangzk

IssueNo: #I5X5NZ

Description: fix form extension lifecycle
Sig: SIG_ApplicationFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: Nyangzk <yangzhongkai@huawei.com>
Change-Id: I2249e8978ab7dafc6b7128f23471b27147763f82
上级 fb0f6b3a
...@@ -19,7 +19,7 @@ import formInfo from '@ohos.application.formInfo'; ...@@ -19,7 +19,7 @@ import formInfo from '@ohos.application.formInfo';
import commonEvent from '@ohos.commonEvent'; import commonEvent from '@ohos.commonEvent';
export default class FormAbility extends FormExtension { export default class FormAbility extends FormExtension {
onCreate(want) { onAddForm(want) {
// Called to return a FormBindingData object. // Called to return a FormBindingData object.
console.info("FormAbility onCreate") console.info("FormAbility onCreate")
let formData = { let formData = {
...@@ -40,24 +40,24 @@ export default class FormAbility extends FormExtension { ...@@ -40,24 +40,24 @@ export default class FormAbility extends FormExtension {
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
} }
onCastToNormal(formId) { onCastToNormalForm(formId) {
// Called when the form provider is notified that a temporary form is successfully // Called when the form provider is notified that a temporary form is successfully
// converted to a normal form. // converted to a normal form.
} }
onUpdate(formId) { onUpdateForm(formId) {
// Called to notify the form provider to update a specified form. // Called to notify the form provider to update a specified form.
} }
onVisibilityChange(newStatus) { onChangeFormVisibility(newStatus) {
// Called when the form provider receives form events from the system. // Called when the form provider receives form events from the system.
} }
onEvent(formId, message) { onFormEvent(formId, message) {
// Called when a specified message event defined by the form provider is triggered. // Called when a specified message event defined by the form provider is triggered.
} }
onDestroy(formId) { onRemoveForm(formId) {
// Called to notify the form provider that a specified form has been destroyed. // Called to notify the form provider that a specified form has been destroyed.
} }
......
...@@ -17,30 +17,30 @@ import formBindingData from '@ohos.application.formBindingData'; ...@@ -17,30 +17,30 @@ import formBindingData from '@ohos.application.formBindingData';
import formInfo from '@ohos.application.formInfo'; import formInfo from '@ohos.application.formInfo';
export default class FormAbility extends FormExtension { export default class FormAbility extends FormExtension {
onCreate(want) { onAddForm(want) {
// Called to return a FormBindingData object. // Called to return a FormBindingData object.
let formData = {}; let formData = {};
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
} }
onCastToNormal(formId) { onCastToNormalForm(formId) {
// Called when the form provider is notified that a temporary form is successfully // Called when the form provider is notified that a temporary form is successfully
// converted to a normal form. // converted to a normal form.
} }
onUpdate(formId) { onUpdateForm(formId) {
// Called to notify the form provider to update a specified form. // Called to notify the form provider to update a specified form.
} }
onVisibilityChange(newStatus) { onChangeFormVisibility(newStatus) {
// Called when the form provider receives form events from the system. // Called when the form provider receives form events from the system.
} }
onEvent(formId, message) { onFormEvent(formId, message) {
// Called when a specified message event defined by the form provider is triggered. // Called when a specified message event defined by the form provider is triggered.
} }
onDestroy(formId) { onRemoveForm(formId) {
// Called to notify the form provider that a specified form has been destroyed. // Called to notify the form provider that a specified form has been destroyed.
} }
......
...@@ -17,30 +17,30 @@ import formBindingData from '@ohos.application.formBindingData'; ...@@ -17,30 +17,30 @@ import formBindingData from '@ohos.application.formBindingData';
import formInfo from '@ohos.application.formInfo'; import formInfo from '@ohos.application.formInfo';
export default class FormAbility extends FormExtension { export default class FormAbility extends FormExtension {
onCreate(want) { onAddForm(want) {
// Called to return a FormBindingData object. // Called to return a FormBindingData object.
let formData = {}; let formData = {};
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
} }
onCastToNormal(formId) { onCastToNormalForm(formId) {
// Called when the form provider is notified that a temporary form is successfully // Called when the form provider is notified that a temporary form is successfully
// converted to a normal form. // converted to a normal form.
} }
onUpdate(formId) { onUpdateForm(formId) {
// Called to notify the form provider to update a specified form. // Called to notify the form provider to update a specified form.
} }
onVisibilityChange(newStatus) { onChangeFormVisibility(newStatus) {
// Called when the form provider receives form events from the system. // Called when the form provider receives form events from the system.
} }
onEvent(formId, message) { onFormEvent(formId, message) {
// Called when a specified message event defined by the form provider is triggered. // Called when a specified message event defined by the form provider is triggered.
} }
onDestroy(formId) { onRemoveForm(formId) {
// Called to notify the form provider that a specified form has been destroyed. // Called to notify the form provider that a specified form has been destroyed.
} }
......
...@@ -18,30 +18,30 @@ import formBindingData from '@ohos.application.formBindingData'; ...@@ -18,30 +18,30 @@ import formBindingData from '@ohos.application.formBindingData';
import formInfo from '@ohos.application.formInfo'; import formInfo from '@ohos.application.formInfo';
export default class FormAbility extends FormExtension { export default class FormAbility extends FormExtension {
onCreate(want) { onAddForm(want) {
// Called to return a FormBindingData object. // Called to return a FormBindingData object.
let formData = {}; let formData = {};
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
} }
onCastToNormal(formId) { onCastToNormalForm(formId) {
// Called when the form provider is notified that a temporary form is successfully // Called when the form provider is notified that a temporary form is successfully
// converted to a normal form. // converted to a normal form.
} }
onUpdate(formId) { onUpdateForm(formId) {
// Called to notify the form provider to update a specified form. // Called to notify the form provider to update a specified form.
} }
onVisibilityChange(newStatus) { onChangeFormVisibility(newStatus) {
// Called when the form provider receives form events from the system. // Called when the form provider receives form events from the system.
} }
onEvent(formId, message) { onFormEvent(formId, message) {
// Called when a specified message event defined by the form provider is triggered. // Called when a specified message event defined by the form provider is triggered.
} }
onDestroy(formId) { onRemoveForm(formId) {
// Called to notify the form provider that a specified form has been destroyed. // Called to notify the form provider that a specified form has been destroyed.
} }
......
...@@ -17,7 +17,7 @@ import FormExtension from '@ohos.app.form.FormExtensionAbility'; ...@@ -17,7 +17,7 @@ import FormExtension from '@ohos.app.form.FormExtensionAbility';
import formBindingData from '@ohos.application.formBindingData'; import formBindingData from '@ohos.application.formBindingData';
export default class ServiceAbility extends FormExtension { export default class ServiceAbility extends FormExtension {
onCreate(want) { onAddForm(want) {
console.info('qianyiyingyong ServiceAbility onCreate'); console.info('qianyiyingyong ServiceAbility onCreate');
let formData = {}; let formData = {};
return formBindingData.createFormBindingData(formData); return formBindingData.createFormBindingData(formData);
...@@ -27,7 +27,7 @@ export default class ServiceAbility extends FormExtension { ...@@ -27,7 +27,7 @@ export default class ServiceAbility extends FormExtension {
console.info('qianyiyingyong ServiceAbility onRequest'); console.info('qianyiyingyong ServiceAbility onRequest');
} }
onDestroy(formId) { onRemoveForm(formId) {
console.info('qianyiyingyong ServiceAbility onDestroy'); console.info('qianyiyingyong ServiceAbility onDestroy');
} }
}; };
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册