DevBy. Apple Watch Kit 1.0 (RU) & NFC
-
Upload
vladimir-hudnitsky -
Category
Engineering
-
view
2.079 -
download
2
Transcript of DevBy. Apple Watch Kit 1.0 (RU) & NFC
![Page 1: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/1.jpg)
WatchKit + NFCDmitriy GroschovskiySenior Software Engineer
Vladimir HudnitskySenior Software Engineer
![Page 2: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/2.jpg)
Apple Watch, what is that?Is a computerized wristwatch with functionality that is enhanced beyond timekeeping. While early models can perform basic tasks, such as calculations, translations, and game-playing, modern smartwatches are effectively wearable computers.
Work hard, play hard on Watch OS (iOS-based)
![Page 3: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/3.jpg)
SiP• NAND - 4 GB• RAM - 512 MB• Wi-Fi 802.11b/g• Bluetooth 4.0 +
HS• NFC
![Page 4: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/4.jpg)
Apple iPhone pair with Watch
๏ Bluetooth 4.0 + HS & FM๏ Wi-Fi 802.11 b/g pair
![Page 5: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/5.jpg)
Input Methods• Digital crown• Multi-touch• Force touch• Microphone
![Page 6: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/6.jpg)
Output Methods
• Speaker• Vibration• Display
![Page 7: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/7.jpg)
Sensors in Watches• Sensors Accelerometer• Gyroscope• Heart rate sensor• Barometer• Walk-meter (via your iPhone)
![Page 8: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/8.jpg)
NFC - Near Field Connection
• Совершение платежей• Загрузка Passbook• Открытия Apple MFi замков
![Page 9: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/9.jpg)
Технология зарядки часов
• Для зарядки часов используется коннектор Apple’s MagSafe® с магнитом для прилипания к часам
![Page 10: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/10.jpg)
Using ResearchKit at Apple Watch
![Page 11: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/11.jpg)
Hierarchical view
![Page 12: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/12.jpg)
Page-based view
![Page 13: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/13.jpg)
Template images that you can use for menus
• WKMenuItemIconAccept , // checkmark
• WKMenuItemIconAdd , // '+'• WKMenuItemIconBlock , // circle
w/ slash • WKMenuItemIconDecline , // 'x'• WKMenuItemIconInfo , // 'i'• WKMenuItemIconMaybe , // '?'• WKMenuItemIconMore , // '...'• WKMenuItemIconMute , //
speaker w/ slash
• WKMenuItemIconPause , // pause button • WKMenuItemIconPlay , // play button • WKMenuItemIconRepeat , // looping
arrows • WKMenuItemIconResume , // circular
arrow • WKMenuItemIconShare , // share icon • WKMenuItemIconShuffle , // swapped
arrows • WKMenuItemIconSpeaker , // speaker
icon • WKMenuItemIconTrash , // trash icon
![Page 14: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/14.jpg)
Menu Images
![Page 15: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/15.jpg)
Internationalizing Your Text Code
• Use the NSLocalizedString family of macros to retrieve localized strings programmatically.
• Use the NSNumberFormatter class to format numerical values using the user’s region and locale settings.
• Use the NSDateFormatter class to format dates using the user’s region and locale settings.
![Page 16: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/16.jpg)
UI Design at default app’s
![Page 17: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/17.jpg)
Development time
![Page 18: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/18.jpg)
WatchKit App Architecture
![Page 19: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/19.jpg)
WatchKit App Architecture
![Page 20: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/20.jpg)
App Target Structure
![Page 21: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/21.jpg)
Launching a WatchKit app
![Page 22: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/22.jpg)
Communicate with iOS App
• InterfaceController.openParentApplication(["getProgress": "1"], reply: {(response, error) -> Void in
• func application(application: UIApplication!, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]!, reply: (([NSObject : AnyObject]!) -> Void)!)
![Page 23: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/23.jpg)
Configuring the dynamic notification
![Page 24: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/24.jpg)
Difference between static and dynamics notifications
![Page 25: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/25.jpg)
Configuring the dynamic notification interface
![Page 26: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/26.jpg)
Glance• Design your glance to convey information quickly• Focus on the most important data• Do not include interactive controls in your glance interface.• Avoid tables and maps in your glance interface• Be timely with the information you display• Use the system font for all text. Avoid custom fonts• App has only one glance interface controller
![Page 27: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/27.jpg)
Development Review
![Page 28: DevBy. Apple Watch Kit 1.0 (RU) & NFC](https://reader034.fdocuments.in/reader034/viewer/2022042723/58d177651a28abed798b5951/html5/thumbnails/28.jpg)
About speakers
Dmitriy GroschovskiyE-Mail: [email protected]: https://fb.com/groschovskiy
LinkedIn: www.linkedin.com/pub/dmitriy-groschovskiy/7b/797/1/GitHub: github.com/groschovskiy
Vladimir HudnitskyE-Mail: [email protected]: https://fb.com/xputnikx
LinkedIn: www.linkedin.com/in/vladimirhudnitsky/ruGitHub: https://github.com/xPutnikx