From 64938a8a9efacbd1e4c5742f935b9df4ce5ecd30 Mon Sep 17 00:00:00 2001 From: XiYuhao Date: Wed, 16 Feb 2022 02:43:56 +0000 Subject: [PATCH] add some ipc api Signed-off-by: Xi_Yuhao --- api/@ohos.rpc.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 1ca5621408..927b199959 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -1234,6 +1234,14 @@ declare namespace rpc { */ getCallingUid(): number; + /** + * Obtains the access token of the {@link RemoteProxy} object. + * + * @return Returns the access token of the {@link RemoteProxy} object. + * @since 8 + */ + getCallingTokenID(): number; + /** * Modifies the description of the current {@code RemoteObject}. * @@ -1413,6 +1421,16 @@ declare namespace rpc { */ static getCallingUid(): number; + /** + * Obtains the access token of a proxy. + * + *

This method is static. + * + * @return Returns the access token of the proxy. + * @since 8 + */ + static getCallingTokenID(): number; + /** * Obtains the ID of the device where the peer process resides. * -- Gitee