android - nativescript extend jar class throw exception -
i use nativescript + tyepscript need extend android jar throw exception “type 'any' not constructor function type.”
declare var com : any; export class mypushtestreceives extends com.baidu.android.pushservice.pushmessagereceiver.extend { static constructorcalled: boolean = false; // //constructor init() { mypushtestreceives.constructorcalled = true; // necessary when extending typescript constructors return global.__native(this); } }
Comments
Post a Comment