Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Accessing the Music Library

Accessing the Music Library

Tomohiro Nishimura

March 30, 2016
Tweet

More Decks by Tomohiro Nishimura

Other Decks in Programming

Transcript

  1. switch SKCloudServiceController.authorizationStatus() { case .Authorized: // ڐՄ͞Ε͍ͯΔ case .Denied: //

    ڐՄ͞Ε͍ͯͳ͍ case .NotDetermined: // ͲͪΒ͔ܾ·͍ͬͯͳ͍ (ڐՄΛٻΊΔඞཁ͕͋Δ) case .Restricted: // Ұ෦ͷػೳ͕ڐՄ͞Ε͍ͯΔ }
  2. let controller = SKCloudServiceController() controller.requestCapabilitiesWithCompletionHandler { (capabilities, error) in if

    let error = error { print(error) fatalError() } if capabilities.contains(.MusicCatalogPlayback) { // ࠶ੜՄೳ } if capabilities.contains(.AddToCloudMusicLibrary) { // ϥΠϒϥϦ΁ͷ௥ՃՄೳ } }
  3. \ XSBQQFS5ZQFUSBDL  LJOETPOH  BSUJTU*E  DPMMFDUJPO*E  USBDL*E

     BSUJTU/BNFϏʔτϧζ  DPMMFDUJPO/BNF5IF#FBUMFT 5IF3FE"MCVN   USBDL/BNF")BSE%BZT/JHIU  DPMMFDUJPO$FOTPSFE/BNF5IF#FBUMFT 5IF3FE"MCVN   USBDL$FOTPSFE/BNF")BSE%BZT/JHIU  BSUJTU7JFX6SMIUUQTJUVOFTBQQMFDPNKQBSUJTUCJUPSV[VJE VP  DPMMFDUJPO7JFX6SMIUUQTJUVOFTBQQMFDPNKQBMCVNBIBSEEBZTOJHIUJE USBDL7JFX6SMIUUQTJUVOFTBQQMFDPNKQBMCVNBIBSEEBZTOJHIUJE QSFWJFX6SMIUUQBQIPCPTBQQMFDPNVTS.VTJDWG BSUXPSL6SMIUUQJTN[TUBUJDDPNJNBHFUIVNC.VTJDWGBEDGBE BSUXPSL6SMIUUQJTN[TUBUJDDPNJNBHFUIVNC.VTJDWGBEDGBE BSUXPSL6SMIUUQJTN[TUBUJDDPNJNBHFUIVNC.VTJDWGBEDG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