コード例 #1
0
SimulatorRemoteResourceSP SimulatorRemoteResourceToCpp(JNIEnv *env, jobject object)
{
    JniSharedObjectHolder<SimulatorRemoteResource> *jniResource =
        GetHandle<JniSharedObjectHolder<SimulatorRemoteResource>>(env, object);
    if (jniResource)
        return jniResource->get();
    return nullptr;
}
コード例 #2
0
static SimulatorCollectionResourceSP simulatorCollectionResourceToCpp(JNIEnv *env, jobject object)
{
    JniSharedObjectHolder<SimulatorCollectionResource> *jniResource =
        getHandle<JniSharedObjectHolder<SimulatorCollectionResource>>(env, object);
    if (jniResource)
        return jniResource->get();
    return nullptr;
}