createOrUpdateActivity method

Future createOrUpdateActivity(
  1. String activityId,
  2. Map<String, dynamic> data, {
  3. bool removeWhenAppIsKilled = false,
  4. Duration? staleIn,
})

Implementation

Future createOrUpdateActivity(
    String activityId,
    Map<String, dynamic> data, {
      bool removeWhenAppIsKilled = false,
      Duration? staleIn,
    }) async {
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    await _appGroupsFileService.sendFilesToAppGroups(data);
  }
  return LiveActivitiesPlatform.instance.createOrUpdateActivity(
      activityId, data,
      removeWhenAppIsKilled: removeWhenAppIsKilled, staleIn: staleIn);
}