Replies: 1 comment
-
It seems that I need to add the NativeClass decorator. @NativeClass
class DecodingRunnable extends java.lang.Runnable {
constructor(reader,frame){
super();
console.log("constructor");
return global.__native(this);
}
run() {
console.log("run");
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I checked this article: https://docs.nativescript.org/advanced-concepts.html#extend-classes-and-interfaces
But I cannot extend a runnable to be used in a thread.
Sample code:
To use it:
Beta Was this translation helpful? Give feedback.
All reactions