public:JavaBBinder(JNIEnv* env, jobject object)
        : mVM(jnienv_to_javavm(env)), mObject(env->NewGlobalRef(object)) {
        android_atomic_inc(&gNumLocalRefs);
        incRefsCreated(env);
}

jobject object() const{
        return mObject;
}

JavaBBinder继承于BBinder对象。请注意object方法返回的是Java层的Binder对象经过转化后的对象。

results matching ""

    No results matching ""