From 4a6380d2f9cb84618a313aad281b046c1eccc776 Mon Sep 17 00:00:00 2001 From: zhou-liting125 Date: Mon, 21 Feb 2022 11:48:45 +0800 Subject: [PATCH] Add an interface for JS side service to obtain tokenid Signed-off-by: zhou-liting125 --- api/@ohos.rpc.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 97576f4438..65c2245729 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -1275,6 +1275,16 @@ declare namespace rpc { */ static getCallingUid(): number; + /** + * Obtains the TOKENID. + * + *

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