Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32526310
D5235.1767141626.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
D5235.1767141626.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
Wed, Dec 31, 12:40 AM (13 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5870996
Default Alt Text
D5235.1767141626.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