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

tvOSを拡張する

 tvOSを拡張する

#potatotips

Noritaka Kamiya

November 24, 2015
Tweet

More Decks by Noritaka Kamiya

Other Decks in Programming

Transcript

  1. 200MB Max, No Storage, No Web Views: Is tvOS the

    Future of Apps? https://realm.io/news/is-tvos-the-future-of-apps/
  2. Handoff is *not* supported in tvOS. The NSUserActivity class will

    be marked as unavailable in the next documentation release. https://forums.developer.apple.com/thread/16962
  3. Apps Communicate with Bluetooth LE Devices • Wearable(HeartRate Monitor, Bike

    Speed Cadence…) • Home(Not HomeKit) • …etc
  4. Be aware •MTU (20 bytes) • Low level I/O programming

    is required • JSON is too heavy • Async Hell...
  5. *OEFY      ʜ  $POUFOU )FBEFS

    0CKFDU*% ʜ ʜ %BUB Y Y Y Y Y ʜ ʜ Packet Structure(example)
  6. Be aware •MTU (20 bytes) • Low level I/O programming

    is required • JSON is too heavy • Async Hell...
  7. References “CoreBluetooth is indeed available on this platform. “ https://forums.developer.apple.com/thread/17457

    “CoreBluetooth only allows 2 accessories on tvOS. If you want to attach more devices, you may want to look at using Bonjour over the Wifi or ethernet network.” https://forums.developer.apple.com/thread/18751 Core Bluetooth Framework Reference https://developer.apple.com/library/tvos/documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/ Bluetooth Low Energy: The Developer's Handbook https://www.safaribooksonline.com/library/view/bluetooth-low-energy/9780132888394/ Sample Code: BluetoothExampleTV https://github.com/nolili/BluetoothExampleTV BTLE Central Peripheral Transfer https://developer.apple.com/library/ios/samplecode/BTLE_Transfer/Introduction/Intro.html