mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
[I6EGAA] api9 调整caller/callee相关接口参数
Signed-off-by: wangzhen <wangzhen346@huawei.com> Change-Id: Ic4650e2d5154252cf7331d9399b1e496eaad3e7b
This commit is contained in:
parent
9acbe4d1ad
commit
8fc6d7ab6f
16
api/@ohos.app.ability.UIAbility.d.ts
vendored
16
api/@ohos.app.ability.UIAbility.d.ts
vendored
@ -39,7 +39,7 @@ export interface OnReleaseCallback {
|
||||
* @since 9
|
||||
*/
|
||||
export interface CalleeCallback {
|
||||
(indata: rpc.MessageParcel): rpc.Sequenceable;
|
||||
(indata: rpc.MessageSequence): rpc.Parcelable;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -51,28 +51,28 @@ export interface CalleeCallback {
|
||||
*/
|
||||
export interface Caller {
|
||||
/**
|
||||
* Notify the server of Sequenceable type data.
|
||||
* Notify the server of Parcelable type data.
|
||||
* @param { string } method - The notification event string listened to by the callee.
|
||||
* @param { rpc.Sequenceable } data - Notification data to the callee.
|
||||
* @param { rpc.Parcelable } data - Notification data to the callee.
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @StageModelOnly
|
||||
* @since 9
|
||||
*/
|
||||
call(method: string, data: rpc.Sequenceable): Promise<void>;
|
||||
call(method: string, data: rpc.Parcelable): Promise<void>;
|
||||
|
||||
/**
|
||||
* Notify the server of Sequenceable type data and return the notification result.
|
||||
* Notify the server of Parcelable type data and return the notification result.
|
||||
* @param { string } method - The notification event string listened to by the callee.
|
||||
* @param { rpc.Sequenceable } data - Notification data to the callee.
|
||||
* @returns { Promise<rpc.MessageParcel> } Returns the callee's notification result data.
|
||||
* @param { rpc.Parcelable } data - Notification data to the callee.
|
||||
* @returns { Promise<rpc.MessageSequence> } Returns the callee's notification result data.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
|
||||
* @StageModelOnly
|
||||
* @since 9
|
||||
*/
|
||||
callWithResult(method: string, data: rpc.Sequenceable): Promise<rpc.MessageParcel>;
|
||||
callWithResult(method: string, data: rpc.Parcelable): Promise<rpc.MessageSequence>;
|
||||
|
||||
/**
|
||||
* Clear service records.
|
||||
|
Loading…
Reference in New Issue
Block a user