showSharedNowPlaying static method

Future<bool> showSharedNowPlaying({
  1. bool animated = true,
})

Navigate to the shared instance of the NowPlaying Template

  • If animated is true, CarPlay animates the transition between templates.

Implementation

static Future<bool> showSharedNowPlaying({bool animated = true}) async {
  final bool? isCompleted = await _carPlayController.flutterToNativeModule(
    FCPChannelTypes.showNowPlaying,
    animated,
  );
  return isCompleted ?? false;
}