@@ -19,7 +19,7 @@ class OneSignalLiveActivities {
19
19
20
20
/// Indicate this device has exited a live activity, identified within OneSignal by the [activityId] .
21
21
///
22
- /// Only applies to iOS.
22
+ /// Only applies to iOS.
23
23
Future <void > exitLiveActivity (String activityId) async {
24
24
if (Platform .isIOS) {
25
25
return await _channel.invokeMethod (
@@ -41,16 +41,16 @@ class OneSignalLiveActivities {
41
41
Future <void > setupDefault ({LiveActivitySetupOptions ? options}) async {
42
42
if (Platform .isIOS) {
43
43
dynamic optionsMap;
44
-
45
- if (options != null ) {
44
+
45
+ if (options != null ) {
46
46
optionsMap = {
47
47
'enablePushToStart' : options.enablePushToStart,
48
48
'enablePushToUpdate' : options.enablePushToUpdate,
49
49
};
50
- }
50
+ }
51
51
52
- return await _channel. invokeMethod (
53
- "OneSignal#setupDefault" , {'options' : optionsMap });
52
+ return await _channel
53
+ . invokeMethod ( "OneSignal#setupDefault" , {'options' : optionsMap});
54
54
}
55
55
}
56
56
@@ -60,10 +60,14 @@ class OneSignalLiveActivities {
60
60
/// provided.
61
61
///
62
62
/// Only applies to iOS.
63
- Future <void > startDefault (String activityId, dynamic attributes, dynamic content) async {
63
+ Future <void > startDefault (
64
+ String activityId, dynamic attributes, dynamic content) async {
64
65
if (Platform .isIOS) {
65
- return await _channel.invokeMethod (
66
- "OneSignal#startDefault" , { 'activityId' : activityId, 'attributes' : attributes, 'content' : content });
66
+ return await _channel.invokeMethod ("OneSignal#startDefault" , {
67
+ 'activityId' : activityId,
68
+ 'attributes' : attributes,
69
+ 'content' : content
70
+ });
67
71
}
68
72
}
69
73
@@ -98,7 +102,8 @@ class LiveActivitySetupOptions {
98
102
bool _enablePushToStart = true ;
99
103
bool _enablePushToUpdate = true ;
100
104
101
- LiveActivitySetupOptions ({bool enablePushToStart = true , bool enablePushToUpdate = true }) {
105
+ LiveActivitySetupOptions (
106
+ {bool enablePushToStart = true , bool enablePushToUpdate = true }) {
102
107
this ._enablePushToStart = enablePushToStart;
103
108
this ._enablePushToUpdate = enablePushToUpdate;
104
109
}
@@ -112,4 +117,4 @@ class LiveActivitySetupOptions {
112
117
bool get enablePushToUpdate {
113
118
return this ._enablePushToUpdate;
114
119
}
115
- }
120
+ }
0 commit comments