Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

KKBOX WWDC17 WatchOS - Dada

4,186 views

Published on

KKBOX iOS 工程師 陳俊達 Dada 分享
影片位置 https://youtu.be/ZN7ypFT6SYA
相關 Sessions
- [The Life of a watchOS App] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/216/)
- [What's New in watchOS] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/205/)
- [What's New in Safari View Controller] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/225/)
- [Customized Loading in WKWebView] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/220/)

Published in: Technology
  • Be the first to comment

KKBOX WWDC17 WatchOS - Dada

  1. 1. WWDC 17 KKBOX iOS Team - Dada
  2. 2. Sessions - What’s New in watchOS - The Life of a watchOS App - What's New in Safari View Controller - Customized Loading in WKWebView
  3. 3. watchOS 4
  4. 4. Features Apple Music Workout Session SiriKit Dock
  5. 5. Features Apple Music Workout Session SiriKit Dock
  6. 6. Features Apple Music Workout Session SiriKit Dock
  7. 7. Features Apple Music Workout Session SiriKit Dock
  8. 8. Features Apple Music Workout Session SiriKit Dock
  9. 9. Enhancement
  10. 10. Enhancement
  11. 11. - New Group Layout Property - Water Lock API - Vertical Paging View - Scroll to Top, Center, Down - Auto Rotate 5 New API features for UI
  12. 12. New Group Layout - Overlap
  13. 13. Water Lock API Only for Workout Session and Navigation Session
  14. 14. Vertical Paging View
  15. 15. Scroll to Top, Center, Down
  16. 16. Auto Rotate
  17. 17. Enhancement
  18. 18. Unified process runtime
  19. 19. watchOS 3 or early version Two processes for different usages.
  20. 20. watchOS 4 Processes are unified in runtime. No need to change any code.
  21. 21. watchOS 4
  22. 22. - Touch latency - Lauch performance - Pan gesture performance - Upped-memory limits accordingly Benefits
  23. 23. Enhancement
  24. 24. Frontmost app state Background app refresh Background modes
  25. 25. Frontmost App State
  26. 26. Frontmost App State - What does it mean?
  27. 27. Frontmost App State - Benefits - Extend runtime - URLSession - WatchConnectivity - Haptic playback - Notification handling
  28. 28. Background App Refresh A few APIs Changed
  29. 29. Background mode
  30. 30. New Background modes - Workout - Audio Recording - Navigation - Core Bluetooth
  31. 31. Workout - Hardware pause/resume - Workout segments - Workout routes - Supports enabling water lock mode
  32. 32. Audio Recording - Custom recording controls - In-line processing (real time language translation) - Background recording - Start from foreground
  33. 33. Audio Recording - Recording AVAudioInputNode (AVAudioEngine) AVAudioRecorder AVAudioSession recording permissions - Formats supported AAC-LC, AAC-ELD, HE-AAC, HE-AACv2, MP3 (decoding only), Opus
  34. 34. Navigation - Appears on wrist raise - Audio and haptics from background - Supports enabling water lock mode - Start from foreground
  35. 35. Core Bluetooth - Limited to two peripherals - Central support only - Minimum connection interval of 30ms foreground (120ms background) - Background running apps can only connect (not scan) - Peripherals disconnect when app is suspended
  36. 36. Safari View Controller
  37. 37. Matching your app’s style iOS 11 improvements Tailoring Safari View Controller
  38. 38. Matching your app’s style iOS 11 improvements Tailoring Safari View Controller
  39. 39. New Look Customizing Color Customizing Dismiss Button Customizing Share Sheet Bar Collapsing 5 Things about UI
  40. 40. New Look
  41. 41. Customizing Color
  42. 42. Matching your app’s style iOS 11 improvements Tailoring Safari View Controller
  43. 43. Drag and Drop Status Bar Styling Webpage window.open() window.close() privacy browsing mode is no longer tied to Safari’s 5 Improvement
  44. 44. Drag and Drop Status Bar Styling Webpage window.open() window.close() Privacy Browsing mode is no longer tied to Safari’s 5 Improvement
  45. 45. Privacy
  46. 46. - On iOS 11, Safari View Controller will have a separate persistent data store in each app that it's used in. - This means that cookies, local storage, and other browsing data will be contained within your app and scoped to your app. - And this means that the user won’t automatically be logged in to whatever accounts they were logged into in Safari. - What this does is it will prevent cross-app tracking of user’s browsing activity that you and your users may not have even been aware about. - And ultimately, it helps keep users’ browsing activity private and scoped within your app.
  47. 47. WKWebView
  48. 48. Manage cookies Filter unwanted content Provide custom resources
  49. 49. Manage cookies Filter unwanted content Provide custom resources
  50. 50. WKHTTPCookieStore - Add and remove individual cookies - Access all cookies visible to a WKWebView - Including HTTP-only cookies - Observe the cookie store for changes
  51. 51. Manage cookies Filter unwanted content Provide custom resources
  52. 52. WKContentRuleList - Same syntax as Content Blocker extensions for Safari (JSON) - Make content invisible - Make insecure loads secure - WebKit compiles your rules into efficient bytecode
  53. 53. Manage cookies Filter unwanted content Provide custom resources
  54. 54. WKURLSchemeHandler - Allows your app to handle resource loads for a URL scheme - Only custom URL schemes that WebKit doesn’t handle itself - You cannot use “local” as your URL scheme
  55. 55. Load something in your view that uses your scheme
  56. 56. Simple protocol you implement
  57. 57. The WKURLSchemeTask sent to your handler represents a resource load
  58. 58. SPrepare a response
  59. 59. SDeliver the response
  60. 60. Q & A

×