Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.55 KB | None | 0 0
  1. //  AppDelegate.swift
  2.  
  3. import UIKit
  4. import MediaPlayer
  5.  
  6. @UIApplicationMain
  7. class AppDelegate: UIResponder, UIApplicationDelegate {
  8.     let playableContentManagerDataSource = PlayableContentManagerDataSource()
  9.     let playableContentManagerDelegate = PlayableContentManagerDelegate()
  10.    
  11.     func setupCarPlay() {
  12.         let playableContentManager = MPPlayableContentManager.shared()
  13.        
  14.         playableContentManager.dataSource = playableContentManagerDataSource
  15.         playableContentManager.delegate = playableContentManagerDelegate
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement