Files
fcs/lib/data/services/messaging_service.dart
Sai Naw Wun 65dda16fe6 clean up
2020-10-07 02:33:06 +06:30

10 lines
318 B
Dart

typedef OnNotify(Map<String, dynamic> message);
typedef OnSetupComplete(String token);
abstract class MessagingService {
void init(OnNotify onMessage,
{OnNotify onLaunch, OnNotify onResume, OnSetupComplete onSetupComplete});
Future<void> subscribe(String topic);
Future<void> unsubscribe(String topic);
}