Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3368425
D5235.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
524 B
Referenced Files
None
Subscribers
None
D5235.id.diff
View Options
diff --git a/native/android/app/src/cpp/jniHelpers.h b/native/android/app/src/cpp/jniHelpers.h
--- a/native/android/app/src/cpp/jniHelpers.h
+++ b/native/android/app/src/cpp/jniHelpers.h
@@ -19,4 +19,13 @@
}
};
+struct Runnable : public jni::JavaClass<Runnable> {
+ static constexpr auto kJavaDescriptor = "Ljava/lang/Runnable;";
+ void run() {
+ static const auto method =
+ jni::findClassStatic("java/lang/Runnable")->getMethod<void()>("run");
+ method(this->self());
+ }
+};
+
} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 7:48 PM (19 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585953
Default Alt Text
D5235.id.diff (524 B)
Attached To
Mode
D5235: Implement C++ class to pass Java lambda (Runnable interface implementation) to C++ code)
Attached
Detach File
Event Timeline
Log In to Comment