Skip to content

Commit

Permalink
Update carplay_worker.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Ella-Kim913 authored Aug 15, 2024
1 parent 13779a5 commit f9258bc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/carplay_worker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,17 @@ class FlutterCarplay {
throw TypeError();
}
}

/// Navigate to the shared instance of the NowPlaying Template
///
/// - If animated is true, CarPlay animates the transition between templates.
static Future<bool> showSharedNowPlaying({
bool animated = true,
}) async {
bool isCompleted = await _carPlayController.reactToNativeModule(
FCPChannelTypes.showNowPlaying,
animated,
);
return isCompleted;
}
}

0 comments on commit f9258bc

Please sign in to comment.