finishReplayKitBroadcast static method

Future<bool?> finishReplayKitBroadcast(
  1. String notificationName
)

This function will post a notification by CFNotificationCenterPostNotification() with notificationName

Developers need to implement the logic to finish broadcast after receiving the notification That is, invoke -[RPBroadcastSampleHandler finishBroadcastWithError:] when received the notification

For specific implementation, please refer to example/ios/BroadcastDemoExtension/SampleHandler.m

Implementation

static Future<bool?> finishReplayKitBroadcast(String notificationName) async {
  if (notificationName.length <= 0) {
    return false;
  }

  return await _channel.invokeMethod(
      'finishReplayKitBroadcast', {'notificationName': notificationName});
}