Skip to content

Commit 13779a5

Browse files
authored
Update SwiftFlutterCarplayPlugin.swift
1 parent 10a9f78 commit 13779a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ios/Classes/SwiftFlutterCarplayPlugin.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ public class SwiftFlutterCarplayPlugin: NSObject, FlutterPlugin {
169169
self.objcPresentTemplate = nil
170170
result(true)
171171
break
172+
case FCPChannelTypes.showNowPlaying:
173+
guard let animated = call.arguments as? Bool else {
174+
result(false)
175+
return
176+
}
177+
FlutterCarPlaySceneDelegate.push(template: CPNowPlayingTemplate.shared, animated: animated)
178+
result(true)
179+
break
172180
case FCPChannelTypes.pushTemplate:
173181
guard let args = call.arguments as? [String : Any] else {
174182
result(false)

0 commit comments

Comments
 (0)