diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index fbbc9ddf9267a7567affa922619d299ca3c6a3e4..80dcf337344a91cf2e005553931f9173ab1115fd 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -25,7 +25,7 @@ import type { AsyncCallback } from './@ohos.base'; * * @namespace rpc * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ declare namespace rpc { @@ -1170,7 +1170,7 @@ declare namespace rpc { * {@link Parcelable}, and ParcelableArray. * * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ class MessageSequence { @@ -1179,7 +1179,7 @@ declare namespace rpc { * * @returns { MessageSequence } Return the object created. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ static create(): MessageSequence; @@ -1188,7 +1188,7 @@ declare namespace rpc { * Reclaim the {@link MessageSequence} object. * * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ reclaim(): void; @@ -1203,7 +1203,7 @@ declare namespace rpc { * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeRemoteObject(obj: IRemoteObject): void; @@ -1215,7 +1215,7 @@ declare namespace rpc { * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readRemoteObject(): IRemoteObject; @@ -1231,7 +1231,7 @@ declare namespace rpc { * 4.The number of bytes copied to the buffer is different from the length of the obtained string. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeInterfaceToken(token: string): void; @@ -1242,7 +1242,7 @@ declare namespace rpc { * @returns { string } Return a string value. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readInterfaceToken(): string; @@ -1261,7 +1261,7 @@ declare namespace rpc { * * @returns { int } Return the storage capacity of the {@link MessageSequence} object. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ getCapacity(): int; @@ -1293,7 +1293,7 @@ declare namespace rpc { * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @throws { BusinessError } 1900011 - Memory allocation failed. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ setCapacity(size: int): void; @@ -1374,7 +1374,7 @@ declare namespace rpc { * * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeNoException(): void; @@ -1387,7 +1387,7 @@ declare namespace rpc { * * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readException(): void; @@ -1427,7 +1427,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeInt(val: int): void; @@ -1441,7 +1441,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeLong(val: long): void; @@ -1481,7 +1481,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeBoolean(val: boolean): void; @@ -1510,7 +1510,7 @@ declare namespace rpc { * 4.The number of bytes copied to the buffer is different from the length of the obtained string. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeString(val: string): void; @@ -1524,7 +1524,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeParcelable(val: Parcelable): void; @@ -1541,7 +1541,7 @@ declare namespace rpc { * 5.The type of the element in the array is incorrect. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeByteArray(byteArray: int[]): void; @@ -1578,7 +1578,7 @@ declare namespace rpc { * 5.The type of the element in the array is incorrect. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeIntArray(intArray: int[]): void; @@ -1633,7 +1633,7 @@ declare namespace rpc { * 5.The type of the element in the array is incorrect. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeDoubleArray(doubleArray: double[]): void; @@ -1651,7 +1651,7 @@ declare namespace rpc { * 4.The element does not exist in the array. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeBooleanArray(booleanArray: boolean[]): void; @@ -1687,7 +1687,7 @@ declare namespace rpc { * 5.The number of bytes copied to the buffer is different from the length of the obtained string. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeStringArray(stringArray: string[]): void; @@ -1703,7 +1703,7 @@ declare namespace rpc { * 4.The element does not exist in the array. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeParcelableArray(parcelableArray: Parcelable[]): void; @@ -1750,7 +1750,7 @@ declare namespace rpc { * @returns { int } Return an integer value. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readInt(): int; @@ -1761,7 +1761,7 @@ declare namespace rpc { * @returns { long } Return a long integer value. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readLong(): long; @@ -1792,7 +1792,7 @@ declare namespace rpc { * @returns { boolean } Return a boolean value. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readBoolean(): boolean; @@ -1813,7 +1813,7 @@ declare namespace rpc { * @returns { string } Return a string value. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readString(): string; @@ -1828,7 +1828,7 @@ declare namespace rpc { * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @throws { BusinessError } 1900012 - Failed to call the JS callback function. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readParcelable(dataIn: Parcelable): void; @@ -1891,7 +1891,7 @@ declare namespace rpc { * 3.The parameter type does not match. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readIntArray(dataIn: int[]): void; @@ -1902,7 +1902,7 @@ declare namespace rpc { * @returns { int[] } Return an integer array. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readIntArray(): int[]; @@ -1965,7 +1965,7 @@ declare namespace rpc { * 3.The parameter type does not match. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readDoubleArray(dataIn: double[]): void; @@ -1976,7 +1976,7 @@ declare namespace rpc { * @returns { double[] } Return a double-precision floating point array. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readDoubleArray(): double[]; @@ -1991,7 +1991,7 @@ declare namespace rpc { * 3.The parameter type does not match. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readBooleanArray(dataIn: boolean[]): void; @@ -2002,7 +2002,7 @@ declare namespace rpc { * @returns { boolean[] } Return a boolean array. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readBooleanArray(): boolean[]; @@ -2041,7 +2041,7 @@ declare namespace rpc { * 3.The parameter type does not match. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readStringArray(dataIn: string[]): void; @@ -2052,7 +2052,7 @@ declare namespace rpc { * @returns { string[] } Return a string array. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readStringArray(): string[]; @@ -2070,7 +2070,7 @@ declare namespace rpc { * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @throws { BusinessError } 1900012 - Failed to call the JS callback function. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readParcelableArray(parcelableArray: Parcelable[]): void; @@ -2110,7 +2110,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @static * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ static closeFileDescriptor(fd: int): void; @@ -2148,7 +2148,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeFileDescriptor(fd: int): void; @@ -2159,7 +2159,7 @@ declare namespace rpc { * @returns { int } Return a file descriptor obtained. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readFileDescriptor(): int; @@ -2173,7 +2173,7 @@ declare namespace rpc { * 2.The parameter is not an instance of the Ashmem object. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ writeAshmem(ashmem: Ashmem): void; @@ -2184,7 +2184,7 @@ declare namespace rpc { * @returns { Ashmem } Return the anonymous share object obtained. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ readAshmem(): Ashmem; @@ -2235,7 +2235,7 @@ declare namespace rpc { * 6.The transferred size is greater than the byte length of ArrayBuffer. * @throws { BusinessError } 1900009 - Failed to write data to the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ writeRawDataBuffer(rawData: ArrayBuffer, size: int): void; @@ -2266,7 +2266,7 @@ declare namespace rpc { * 2.The parameter type does not match. * @throws { BusinessError } 1900010 - Failed to read data from the message sequence. * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ readRawDataBuffer(size: int): ArrayBuffer; @@ -2348,7 +2348,7 @@ declare namespace rpc { * * @typedef Parcelable * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ interface Parcelable { @@ -2359,7 +2359,7 @@ declare namespace rpc { * object will be marshalled. * @returns { boolean } Return {@code true} if the marshalling is successful; return {@code false} otherwise. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ marshalling(dataOut: MessageSequence): boolean; @@ -2371,7 +2371,7 @@ declare namespace rpc { * which the {@code Parcelable} object has been marshalled. * @returns { boolean } Return {@code true} if the unmarshalling is successful; return {@code false} otherwise. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ unmarshalling(dataIn: MessageSequence): boolean; @@ -2439,7 +2439,7 @@ declare namespace rpc { * * @typedef RequestResult * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ interface RequestResult { @@ -2448,7 +2448,7 @@ declare namespace rpc { * * @type { int } * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ errCode: int; @@ -2458,7 +2458,7 @@ declare namespace rpc { * * @type { int } * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ code: int; @@ -2469,7 +2469,7 @@ declare namespace rpc { * * @type { MessageSequence } * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ data: MessageSequence; @@ -2480,7 +2480,7 @@ declare namespace rpc { * * @type { MessageSequence } * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ reply: MessageSequence; @@ -2495,7 +2495,7 @@ declare namespace rpc { * a specific file, and send messages. * * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ abstract class IRemoteObject { @@ -2594,7 +2594,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -2648,7 +2648,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -2685,7 +2685,7 @@ declare namespace rpc { * @throws { BusinessError } 1900005 - Operation allowed only for the proxy object. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ registerDeathRecipient(recipient: DeathRecipient, flags: int): void; @@ -2716,7 +2716,7 @@ declare namespace rpc { * @throws { BusinessError } 1900005 - Operation allowed only for the proxy object. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ unregisterDeathRecipient(recipient: DeathRecipient, flags: int): void; @@ -2740,7 +2740,7 @@ declare namespace rpc { * @returns { string } Return the interface descriptor. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ getDescriptor(): string; @@ -2750,7 +2750,7 @@ declare namespace rpc { * * @returns { boolean } Return {@code true} if the object is dead; return {@code false} otherwise. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ isObjectDead(): boolean; @@ -2766,7 +2766,7 @@ declare namespace rpc { * * @typedef IRemoteBroker * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ interface IRemoteBroker { @@ -2776,12 +2776,21 @@ declare namespace rpc { * @returns { IRemoteObject } Return the RemoteObject if the caller is a RemoteObject; return the IRemoteObject, * that is, the holder of this RemoteProxy object, if the caller is a RemoteProxy object. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ asObject(): IRemoteObject; } + /** + * Called to perform subsequent operations when a death notification of the remote object is received. + * + * @typedef { funcation } + * @syscap SystemCapability.Communication.IPC.Core + * @since 20 static + */ + type OnRemoteDiedFunc = () => void; + /** * @typedef DeathRecipient * @syscap SystemCapability.Communication.IPC.Core @@ -2799,7 +2808,7 @@ declare namespace rpc { * * @typedef DeathRecipient * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ interface DeathRecipient { @@ -2807,10 +2816,18 @@ declare namespace rpc { * Called to perform subsequent operations when a death notification of the remote object is received. * * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic - * @since 20 static + * @since 7 dynamic */ onRemoteDied(): void; + + /** + * Called to perform subsequent operations when a death notification of the remote object is received. + * + * @type { onRemoteDiedFunc } + * @syscap SystemCapability.Communication.IPC.Core + * @since 20 static + */ + onRemoteDied(): OnRemoteDiedFunc; } /** @@ -2821,7 +2838,7 @@ declare namespace rpc { * Public Message Option, using the specified flag type, constructs the specified MessageOption object. * * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ class MessageOption { @@ -2883,7 +2900,7 @@ declare namespace rpc { * @param { int } syncFlags - Specifies whether the SendRequest is called synchronously (default) or asynchronously. * @param { int } waitTime - Maximum wait time for a RPC call. The default value is TF_WAIT_TIME. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ constructor(syncFlags?: int, waitTime?: int); @@ -2930,7 +2947,7 @@ declare namespace rpc { * @returns { boolean } Return {@code true} if the asynchronous call succeeds; * return {@code false} if the synchronous call succeeds. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ isAsync(): boolean; @@ -2940,7 +2957,7 @@ declare namespace rpc { * * @param { boolean } isAsync - Indicates the call flag, which can be synchronous or asynchronous. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ setAsync(isAsync: boolean): void; @@ -2974,7 +2991,7 @@ declare namespace rpc { * * @extends IRemoteObject * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ class RemoteObject extends IRemoteObject { @@ -2983,7 +3000,7 @@ declare namespace rpc { * * @param { string } descriptor - Specifies interface descriptor. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ constructor(descriptor: string); @@ -3034,7 +3051,7 @@ declare namespace rpc { * @returns { string } Return the interface descriptor. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ getDescriptor(): string; @@ -3054,7 +3071,7 @@ declare namespace rpc { * {{@code false} otherwise} when the function call is synchronous. * Return a promise object with a boolean when the function call is asynchronous. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ onRemoteMessageRequest( @@ -3141,7 +3158,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -3195,7 +3212,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -3211,7 +3228,7 @@ declare namespace rpc { * * @returns { int } Return the PID of the {@link RemoteProxy} object. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ getCallingPid(): int; @@ -3221,7 +3238,7 @@ declare namespace rpc { * * @returns { int } Return the UID of the {@link RemoteProxy} object. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ getCallingUid(): int; @@ -3265,7 +3282,7 @@ declare namespace rpc { * * @extends IRemoteObject * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ class RemoteProxy extends IRemoteObject { @@ -3377,7 +3394,7 @@ declare namespace rpc { * 3.The callback used to receive remote object death notifications is empty. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ registerDeathRecipient(recipient: DeathRecipient, flags: int): void; @@ -3409,7 +3426,7 @@ declare namespace rpc { * 3.The callback used to receive remote object death notifications is empty. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ unregisterDeathRecipient(recipient: DeathRecipient, flags: int): void; @@ -3432,7 +3449,7 @@ declare namespace rpc { * @throws { BusinessError } 1900007 - communication failed. * @throws { BusinessError } 1900008 - The proxy or remote object is invalid. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ getDescriptor(): string; @@ -3496,7 +3513,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -3550,7 +3567,7 @@ declare namespace rpc { * 2.The parameter type does not match; * 3.Failed to obtain the passed object instance. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ sendMessageRequest( @@ -3566,7 +3583,7 @@ declare namespace rpc { * * @returns { boolean } Return {@code true} if the {@code RemoteObject} is dead; return {@code false} otherwise. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ isObjectDead(): boolean; @@ -3581,7 +3598,7 @@ declare namespace rpc { * peer device IDs, and checking whether the API call is on the same device. * * @syscap SystemCapability.Communication.IPC.Core - * @since 11 dynamic + * @since 11 dynamic * @since 20 static */ class IPCSkeleton { @@ -3591,7 +3608,7 @@ declare namespace rpc { * * @returns { IRemoteObject } Return an {@link IRemoteObject} reference of the registered service. * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ static getContextObject(): IRemoteObject; @@ -3607,7 +3624,7 @@ declare namespace rpc { * @returns { int } Return the PID of the proxy. * @static * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ static getCallingPid(): int; @@ -3623,7 +3640,7 @@ declare namespace rpc { * @returns { int } Return the UID of the proxy. * @static * @syscap SystemCapability.Communication.IPC.Core - * @since 7 dynamic + * @since 7 dynamic * @since 20 static */ static getCallingUid(): int; @@ -3635,7 +3652,7 @@ declare namespace rpc { * @returns { long } Return the TOKENID. * @static * @syscap SystemCapability.Communication.IPC.Core - * @since 8 dynamic + * @since 8 dynamic * @since 20 static */ static getCallingTokenId(): long; @@ -3747,7 +3764,7 @@ declare namespace rpc { * obtaining the Ashmem size, and setting Ashmem protection. * * @syscap SystemCapability.Communication.IPC.Core - * @since 8 dynamic + * @since 8 dynamic * @since 20 static */ class Ashmem { @@ -3821,7 +3838,7 @@ declare namespace rpc { * 4.The Ashmem size passed is less than or equal to 0. * @static * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ static create(name: string, size: int): Ashmem; @@ -3850,7 +3867,7 @@ declare namespace rpc { * 2.The passed parameter is not an Ahmem object; * 3.The ashmem instance for obtaining packaging is empty. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ static create(ashmem: Ashmem): Ashmem; @@ -3876,7 +3893,7 @@ declare namespace rpc { * * @returns { int } Memory size mapped. * @syscap SystemCapability.Communication.IPC.Core - * @since 8 dynamic + * @since 8 dynamic * @since 20 static */ getAshmemSize(): int; @@ -3925,7 +3942,7 @@ declare namespace rpc { * * @throws { BusinessError } 1900001 - Failed to call mmap. * @syscap SystemCapability.Communication.IPC.Core - * @since 9 dynamic + * @since 9 dynamic * @since 20 static */ mapReadWriteAshmem(): void;