droid_wrap_utils

Function get_proxy_hash_code

Source
pub fn get_proxy_hash_code(proxy: &GlobalRef) -> i32
Expand description

获取java代理对象的哈希值。

§Arguments

  • proxy: 代理对象。

returns: i32

§Examples

use droid_wrap_utils::{new_proxy, get_proxy_hash_code};
let proxy = new_proxy(&["java.lang.Runnable"]);
let hash_code = get_proxy_hash_code(&proxy);