Slide 1

Slide 1 text

extension AppleTV { } tvOSΛ֦ு͢Δ @nolili Noritaka Kamiya

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

! Apple TV & tvOS

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

" 10-foot user interface Siri Remote # Keyboard/Web Experience $

Slide 13

Slide 13 text

200MB Max, No Storage, No Web Views: Is tvOS the Future of Apps? https://realm.io/news/is-tvos-the-future-of-apps/

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

• Handoff % • Multiple connectivity % • Keychain Sharing %

Slide 16

Slide 16 text

Core Bluetooth is Available! ㊗

Slide 17

Slide 17 text

Restricted Act as Central. not peripheral 2 devices

Slide 18

Slide 18 text

Apps Communicate with Bluetooth LE Devices • Wearable(HeartRate Monitor, Bike Speed Cadence…) • Home(Not HomeKit) • …etc

Slide 19

Slide 19 text

CBCentralManager Peripheral

Slide 20

Slide 20 text

Communicate with iOS/Mac Apps

Slide 21

Slide 21 text

CBCentralManager CBPeripheralManager

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Be aware •MTU (20 bytes) • Low level I/O programming is required • JSON is too heavy • Async Hell...

Slide 24

Slide 24 text

*OEFY ʜ $POUFOU )FBEFS 0CKFDU*% ʜ ʜ %BUB Y Y Y Y Y ʜ ʜ Packet Structure(example)

Slide 25

Slide 25 text

CBMutableCharacteristic(type: TVMessageCharacteristic.UUID, properties: .Write, value: nil, permissions: .WriteEncryptionRequired) Encryption pitfall x

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Restricted Act as Central. not peripheral 2 devices

Slide 28

Slide 28 text

Be aware •MTU (20 bytes) • Low level I/O programming is required • JSON is too heavy • Async Hell...

Slide 29

Slide 29 text

extension AppleTV { } tvOSΛ֦ு͢Δ @nolili

Slide 30

Slide 30 text

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