mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
wang
Signed-off-by: wangkailong <wangkailong6@huawei.com> Change-Id: Ic6c03d1ab708facaafe84daecf3239322bcceff2
This commit is contained in:
parent
175e69fc2e
commit
3b7a2a0485
68
api/@ohos.app.form.formHost.d.ts
vendored
68
api/@ohos.app.form.formHost.d.ts
vendored
@ -720,6 +720,74 @@ declare namespace formHost {
|
||||
*/
|
||||
function off(type: 'formRemove', observerCallback?: Callback<formInfo.RunningFormInfo>, bundleName?: string): void;
|
||||
|
||||
/**
|
||||
* Listens to the event of notifyVisible type change.
|
||||
* <p>You can use this method to listen to the event of notifyVisible type change.</p>
|
||||
* @permission ohos.permission.REQUIRE_FORM
|
||||
* @param { 'notifyVisible' } type - Indicates event type.
|
||||
* @param { Callback<Array<formInfo.RunningFormInfo>> } observerCallback - The callback is used to return
|
||||
* the running form info.
|
||||
* @param { string } hostBundleName - Indicates the bundle name of the form host application.
|
||||
* @throws { BusinessError } 202 - The application is not a system application.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.Form
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function on(type: 'notifyVisible',
|
||||
observerCallback: Callback<Array<formInfo.RunningFormInfo>>, hostBundleName?: string): void;
|
||||
|
||||
/**
|
||||
* Listens to the event of notifyInvisible type change.
|
||||
* <p>You can use this method to listen to the event of notifyInvisible type change.</p>
|
||||
* @permission ohos.permission.REQUIRE_FORM
|
||||
* @param { 'notifyInvisible' } type - Indicates event type.
|
||||
* @param { Callback<Array<formInfo.RunningFormInfo>> } observerCallback - The callback is used to return
|
||||
* the running form info.
|
||||
* @param { string } hostBundleName - Indicates the bundle name of the form host application.
|
||||
* @throws { BusinessError } 202 - The application is not a system application.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.Form
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function on(type: 'notifyInvisible',
|
||||
observerCallback: Callback<Array<formInfo.RunningFormInfo>>, hostBundleName?: string): void;
|
||||
|
||||
/**
|
||||
* Cancels listening to the event of notifyVisible type change.
|
||||
* <p>You can use this method to cancel listening to the event of notifyVisible type change.</p>
|
||||
* @permission ohos.permission.REQUIRE_FORM
|
||||
* @param { 'notifyVisible' } type - Indicates event type.
|
||||
* @param { Callback<Array<formInfo.RunningFormInfo>> } observerCallback - The callback is used to return
|
||||
* the running form info.
|
||||
* @param { string } hostBundleName - Indicates the bundle name of the form host application.
|
||||
* @throws { BusinessError } 202 - The application is not a system application.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.Form
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function off(type: 'notifyVisible',
|
||||
observerCallback?: Callback<Array<formInfo.RunningFormInfo>>, hostBundleName?: string): void;
|
||||
|
||||
/**
|
||||
* Cancels listening to the event of notifyInvisible type change.
|
||||
* <p>You can use this method to cancel listening to the event of notifyInvisible type change.</p>
|
||||
* @permission ohos.permission.REQUIRE_FORM
|
||||
* @param { 'notifyInvisible' } type - Indicates event type.
|
||||
* @param { Callback<Array<formInfo.RunningFormInfo>> } observerCallback - The callback is used to return
|
||||
* the running form info.
|
||||
* @param { string } hostBundleName - Indicates the bundle name of the form host application.
|
||||
* @throws { BusinessError } 202 - The application is not a system application.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.Form
|
||||
* @systemapi
|
||||
* @since 10
|
||||
*/
|
||||
function off(type: 'notifyInvisible',
|
||||
observerCallback?: Callback<Array<formInfo.RunningFormInfo>>, hostBundleName?: string): void;
|
||||
|
||||
/**
|
||||
* Notify form is Visible
|
||||
* <p>You can use this method to notify form visible state.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user