You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
654 B
28 lines
654 B
|
|
|
|
|
|
import 'package:tpns_flutter_plugin/android/native_event_handler.dart'; |
|
|
|
class MyNativeEventHandler extends NativeEventHandler { |
|
|
|
final Function(String title, String message, String customContent, int type) notifyClick; |
|
|
|
MyNativeEventHandler(this.notifyClick); |
|
|
|
@override |
|
void onRegisterPushFail(String message, int code) { |
|
|
|
} |
|
|
|
@override |
|
void onRegisterPushSuccess(String token) { |
|
|
|
} |
|
|
|
@override |
|
void onNotifactionClickedResult(String title, String message, String customContent, int type) { |
|
super.onNotifactionClickedResult(title, message, customContent, type); |
|
this.notifyClick(title, message, customContent, type); |
|
} |
|
|
|
} |