createOrUpdateActivity method
Future
createOrUpdateActivity(
- String activityId,
- Map<
String, dynamic> data, { - bool removeWhenAppIsKilled = false,
- bool iOSEnableRemoteUpdates = true,
- Duration? staleIn,
override
Implementation
@override
Future createOrUpdateActivity(
String activityId,
Map<String, dynamic> data, {
bool removeWhenAppIsKilled = false,
bool iOSEnableRemoteUpdates = true,
Duration? staleIn,
}) async {
final staleInMinutes = (staleIn?.inMinutes ?? 0) >= 1
? staleIn?.inMinutes
: null;
return methodChannel.invokeMethod('createOrUpdateActivity', {
'activityId': activityId,
'data': data,
'removeWhenAppIsKilled': removeWhenAppIsKilled,
'enableRemoteUpdates': iOSEnableRemoteUpdates,
'staleIn': staleInMinutes,
});
}