Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AppDelegate.swift
- import UIKit
- import MediaPlayer
- @UIApplicationMain
- class AppDelegate: UIResponder, UIApplicationDelegate {
- let playableContentManagerDataSource = PlayableContentManagerDataSource()
- let playableContentManagerDelegate = PlayableContentManagerDelegate()
- func setupCarPlay() {
- let playableContentManager = MPPlayableContentManager.shared()
- playableContentManager.dataSource = playableContentManagerDataSource
- playableContentManager.delegate = playableContentManagerDelegate
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement