2020-09-06 02:36:57 +06:30
|
|
|
typedef OnNotify(Map<String, dynamic> message);
|
2020-09-20 05:34:49 +06:30
|
|
|
typedef OnSetupComplete(String token);
|
2020-09-06 02:36:57 +06:30
|
|
|
|
|
|
|
|
abstract class MessagingService {
|
2020-09-20 05:34:49 +06:30
|
|
|
void init(OnNotify onMessage,
|
|
|
|
|
{OnNotify onLaunch, OnNotify onResume, OnSetupComplete onSetupComplete});
|
2020-09-06 02:36:57 +06:30
|
|
|
Future<void> subscribe(String topic);
|
|
|
|
|
Future<void> unsubscribe(String topic);
|
|
|
|
|
}
|