javacb 自定义回调
2022-12-22 14:05:08 最后更新
用法:

Object jar = i.loadjar("test.jar");
Object c1 = i.cls(jar, "com.ceshi.dex.main");
Object o = i.javanew(c1);
Object c2 = i.cls(jar, "com.ceshi.dex.main$huidiao");

//设置回调方法
Object hd = i.javacb(c2, 
new com.iapp.interfaces.OnInvocationHandler()
{
    public void on(java.lang.reflect.Method m, Object[] s)
    {
    }
}
);
//设置回调
Object a = i.javax(o, c1, "sethuidiao", {c2, hd});
//调用回调方法
Object a = i.javax(o, c1, "get", {"String", "666"});

说明:
常用于设置自定义SDK的回调方法。