diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 1ca562140884afbc5fd13f75c9b0b9c0c1ecb81c..4e383a31f7da7d4288bd37d52f36e1f810304ad5 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 UID of the proxy. + * @since 8 + */ + static getCallingTokenID(): number; + /** * Obtains the ID of the device where the peer process resides. *