diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 0ee21513cb4f9867c28d4e05df22f376a41b71e9..19f0fb7c1f36edb86d034723b95d993bb3c67742 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -645,7 +645,7 @@ declare namespace rpc { * @param sequenceableArray Sequenceable array to read. * @since 8 */ - readSequenceableArray(sequenceableArray Sequenceable[]): void; + readSequenceableArray(sequenceableArray: Sequenceable[]): void; /** * Reads the specified {@link IRemoteObject} array from this {@link MessageParcel} object. @@ -750,6 +750,12 @@ declare namespace rpc { readRawData(size: number): number[]; } + + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ interface Sequenceable { /** * Marshals this {@code Sequenceable} object into a {@link MessageParcel}. @@ -779,8 +785,9 @@ declare namespace rpc { *

SendRequestResult object contains four members, * namely error code of this operation, request code, data parcel * and reply parcel. - * @since 8 + * @syscap SystemCapability.Communication.IPC.Core * @import import rpc from '@ohos.rpc' + * @since 8 */ interface SendRequestResult { /** @@ -810,6 +817,11 @@ declare namespace rpc { reply: MessageParcel; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ interface IRemoteObject { /** * Queries the description of an interface. @@ -918,6 +930,11 @@ declare namespace rpc { isObjectDead(): boolean; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ interface IRemoteBroker { /** * Obtains a proxy or remote object. This method must be implemented by its derived classes. @@ -929,6 +946,11 @@ declare namespace rpc { asObject(): IRemoteObject; } + /** + * @since 7 + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + */ interface DeathRecipient { /** * Called to perform subsequent operations when a death notification of the remote object is received. @@ -938,6 +960,11 @@ declare namespace rpc { onRemoteDied(): void; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ class MessageOption { /** * Indicates synchronous call. @@ -1001,6 +1028,11 @@ declare namespace rpc { setWaitTime(waitTime: number): void; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ class RemoteObject implements IRemoteObject { /** * A constructor to create a RemoteObject instance. @@ -1124,6 +1156,11 @@ declare namespace rpc { attachLocalInterface(localInterface: IRemoteBroker, descriptor: string): void; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ class RemoteProxy implements IRemoteObject { /** * Indicates the message code for a Ping operation. @@ -1252,6 +1289,11 @@ declare namespace rpc { isObjectDead(): boolean; } + /** + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' + * @since 7 + */ class IPCSkeleton { /** * Obtains a local {@link IRemoteObject} reference of a registered service. @@ -1372,6 +1414,8 @@ declare namespace rpc { * including creating, closing, mapping, and unmapping an Ashmem object, * reading data from and writing data to an Ashmem object, * obtaining the Ashmem size, and setting Ashmem protection. + * @syscap SystemCapability.Communication.IPC.Core + * @import import rpc from '@ohos.rpc' * @since 8 */ class Ashmem {