forked from pusher/push-notifications-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.dart
executable file
·41 lines (27 loc) · 935 Bytes
/
messages.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:pigeon/pigeon.dart';
class BeamsAuthProvider {
String? authUrl;
Map<String?, String?>? headers;
Map<String?, String?>? queryParams;
String? credentials; // web-only
}
@HostApi()
abstract class PusherBeamsApi {
void start(String instanceId);
@async
Map<String, dynamic> getInitialMessage();
void addDeviceInterest(String interest);
void removeDeviceInterest(String interest);
List<String> getDeviceInterests();
void setDeviceInterests(List<String> interests);
void clearDeviceInterests();
void onInterestChanges(String callbackId);
void setUserId(String userId, BeamsAuthProvider provider, String callbackId);
void clearAllState();
void onMessageReceivedInTheForeground(String callbackId);
void stop();
}
@FlutterApi()
abstract class CallbackHandlerApi {
void handleCallback(String callbackId, String callbackName, List args);
}