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");
}
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions