Writing Energy Efficient Apps

Size: px
Start display at page:

Download "Writing Energy Efficient Apps"

Transcription

1 Session App Frameworks #WWDC17 Writing Energy Efficient Apps 238 Daniel Schucker, Software Power Engineer Prajakta Karandikar, Software Power Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

2

3

4

5 Battery Life Concepts Energy Efficient Coding Energy Debugging Tools and Demo Final Thoughts

6 General Battery Life Concepts

7 What Is Energy? Power Time

8 What Is Energy? Active Active Power Overhead Overhead Idle Time

9 What Is Energy? Active Active Power Overhead Overhead Energy Idle Time

10 What Is Energy? Active Your work Overhead Active Power Overhead Overhead Dynamic cost Fixed cost Idle Time

11 Balancing Power and Battery Life

12 Balancing Power and Battery Life

13 What Consumes Energy?

14 What Consumes Energy? Processing Networking Location Graphics

15 How to Reduce Energy Consumption Identify Optimize Coalesce Reduce

16 Energy Efficient Coding

17

18 Social Networking App Main feed Post a photo Analytics

19 Social Networking App Main Feed Current implementation Reloads on a timer

20 Social Networking App Energy Impact Feed Refresh Power Time

21 Social Networking App Energy Impact Feed Refresh Power Time

22 Social Networking App Energy Impact Feed Refresh Radio cost Power Dynamic cost Overhead cost Time

23 Social Networking App Main Feed Reload only when needed User interaction Notification Use NSURLSession Default Session New: WaitsForConnectivity Cache

24 Social Networking App Energy Impact Feed Refresh Radio cost Power User Interaction Notification Dynamic cost Overhead cost Time

25 // Setup NSURLSession Default Session let config = URLSessionConfiguration.default() // Use WaitsForConnectivity config.waitsforconnectivity = true // NSURLSession Cache let cachesdirectoryurl = FileManager.default().urlsForDirectory(.cachesDirectory, indomains:.userdomainmask).first! let cacheurl = try! cachesdirectoryurl.appendingpathcomponent("mycache") var diskpath = cacheurl.path let cache = URLCache(memoryCapacity:16384, diskcapacity: , diskpath: diskpath) config.urlcache = cache config.requestcachepolicy =.useprotocolcachepolicy

26 // Setup NSURLSession Default Session let config = URLSessionConfiguration.default() // Use WaitsForConnectivity config.waitsforconnectivity = true // NSURLSession Cache let cachesdirectoryurl = FileManager.default().urlsForDirectory(.cachesDirectory, indomains:.userdomainmask).first! let cacheurl = try! cachesdirectoryurl.appendingpathcomponent("mycache") var diskpath = cacheurl.path let cache = URLCache(memoryCapacity:16384, diskcapacity: , diskpath: diskpath) config.urlcache = cache config.requestcachepolicy =.useprotocolcachepolicy

27 // Setup NSURLSession Default Session let config = URLSessionConfiguration.default() // Use WaitsForConnectivity config.waitsforconnectivity = true // NSURLSession Cache let cachesdirectoryurl = FileManager.default().urlsForDirectory(.cachesDirectory, indomains:.userdomainmask).first! let cacheurl = try! cachesdirectoryurl.appendingpathcomponent("mycache") var diskpath = cacheurl.path let cache = URLCache(memoryCapacity:16384, diskcapacity: , diskpath: diskpath) config.urlcache = cache config.requestcachepolicy =.useprotocolcachepolicy

28 // Setup NSURLSession Default Session let config = URLSessionConfiguration.default() // Use WaitsForConnectivity config.waitsforconnectivity = true // NSURLSession Cache let cachesdirectoryurl = FileManager.default().urlsForDirectory(.cachesDirectory, indomains:.userdomainmask).first! let cacheurl = try! cachesdirectoryurl.appendingpathcomponent("mycache") var diskpath = cacheurl.path let cache = URLCache(memoryCapacity:16384, diskcapacity: , diskpath: diskpath) config.urlcache = cache config.requestcachepolicy =.useprotocolcachepolicy

29 Social Networking App Posting a Photo Current implementation Send immediately Retry on failure

30 Social Networking App Energy Impact Send photo cost Radio cost Power Send Photo Timeout Dynamic cost Overhead cost Time

31 Social Networking App Energy Impact Send photo cost Radio cost Power Send Photo Timeout Retry Timeout Dynamic cost Overhead cost Time

32 Social Networking App Posting a Photo Use NSURLSession Default Session Minimize retries Set timeouts Batch Transactions When retry limit hit Use Background Session

33 Social Networking App Energy Impact Send photo cost Radio cost Power Send Photo Timeout Retry Timeout Create Background Session Dynamic cost Overhead cost Time

34 Social Networking App Sending analytics data Use NSURLSession Background Session Automatic retries Throughput monitoring Analytics Properties New - Start time - Workload size Discretionary

35 Social Networking App Sending analytics data Use NSURLSession Background Session Automatic retries Throughput monitoring Analytics Properties New - Start time - Workload size Discretionary

36 Social Networking Application Energy Impact Send analytics cost Other networking cost Radio cost Power Dynamic cost Overhead cost Time

37 Social Networking Application Energy Impact Send analytics cost Other networking cost Radio cost Power Dynamic cost Overhead cost Time

38 // Setup NSURLSession Background Session let config = URLSessionConfiguration.background(withIdentifier: "com.socialapp.background") let session = URLSession(configuration: config, delegate:, delegatequeue: ) // Set discretionary property config.discretionary = true // Create Request and Task var request = URLRequest(url: URL(string: " request.addvalue(" ", forhttpheaderfield: ) let task = session.downloadtask(with: request) // Set time window task.earliestbegindate = Date(timeIntervalSinceNow: 2 * 60 * 60) // Set workload size task.countofbytesclientexpectstosend = 80 task.countofbytesclientexpectstoreceive = 2048 task.resume()

39 // Setup NSURLSession Background Session let config = URLSessionConfiguration.background(withIdentifier: "com.socialapp.background") let session = URLSession(configuration: config, delegate:, delegatequeue: ) // Set discretionary property config.discretionary = true // Create Request and Task var request = URLRequest(url: URL(string: " request.addvalue(" ", forhttpheaderfield: ) let task = session.downloadtask(with: request) // Set time window task.earliestbegindate = Date(timeIntervalSinceNow: 2 * 60 * 60) // Set workload size task.countofbytesclientexpectstosend = 80 task.countofbytesclientexpectstoreceive = 2048 task.resume()

40 // Setup NSURLSession Background Session let config = URLSessionConfiguration.background(withIdentifier: "com.socialapp.background") let session = URLSession(configuration: config, delegate:, delegatequeue: ) // Set discretionary property config.discretionary = true // Create Request and Task var request = URLRequest(url: URL(string: " request.addvalue(" ", forhttpheaderfield: ) let task = session.downloadtask(with: request) // Set time window task.earliestbegindate = Date(timeIntervalSinceNow: 2 * 60 * 60) // Set workload size task.countofbytesclientexpectstosend = 80 task.countofbytesclientexpectstoreceive = 2048 task.resume()

41 Social Networking Application WatchOS Use background session for screen off work Complication updates Background app refresh Runtime when task completes

42 Networking Best Practices Identify Ensure transactions not repeated Optimize Use background session Coalesce Batch transactions Reduce Minimize retries

43

44 Location Best Practices Location APIs Continuous location Quick location update Region monitoring Visit monitoring Significant location change

45 Location Best Practices Continuous Location Navigate to a destination Continuous location updates Prevents device sleep Stop location updates Allows device to sleep

46 // Create location manager locationmanager = CLLocationManager() locationmanager.delegate = self locationmanager.requestwheninuseauthorization() // Set desired accuracy, auto-pause, and activity type appropriately locationmanager.desiredaccuracy = kcllocationaccuracythreekilometers locationmanager.pauseslocationupdatesautomatically = true locationmanager.activitytype = CLActivityTypeNavigation // Set allows background if its needed locationmanager.allowsbackgroundlocationupdates = true // Start location updates locationmanager.startupdatinglocation()

47 // Create location manager locationmanager = CLLocationManager() locationmanager.delegate = self locationmanager.requestwheninuseauthorization() // Set desired accuracy, auto-pause, and activity type appropriately locationmanager.desiredaccuracy = kcllocationaccuracythreekilometers locationmanager.pauseslocationupdatesautomatically = true locationmanager.activitytype = CLActivityTypeNavigation // Set allows background if its needed locationmanager.allowsbackgroundlocationupdates = true // Start location updates locationmanager.startupdatinglocation()

48 // Create location manager locationmanager = CLLocationManager() locationmanager.delegate = self locationmanager.requestwheninuseauthorization() // Set desired accuracy, auto-pause, and activity type appropriately locationmanager.desiredaccuracy = kcllocationaccuracythreekilometers locationmanager.pauseslocationupdatesautomatically = true locationmanager.activitytype = CLActivityTypeNavigation // Set allows background if its needed locationmanager.allowsbackgroundlocationupdates = true // Start location updates locationmanager.startupdatinglocation()

49 // Create location manager locationmanager = CLLocationManager() locationmanager.delegate = self locationmanager.requestwheninuseauthorization() // Set desired accuracy, auto-pause, and activity type appropriately locationmanager.desiredaccuracy = kcllocationaccuracythreekilometers locationmanager.pauseslocationupdatesautomatically = true locationmanager.activitytype = CLActivityTypeNavigation // Set allows background if its needed locationmanager.allowsbackgroundlocationupdates = true // Start location updates locationmanager.startupdatinglocation()

50 // Create location manager locationmanager = CLLocationManager() locationmanager.delegate = self locationmanager.requestwheninuseauthorization() // Set desired accuracy, auto-pause, and activity type appropriately locationmanager.desiredaccuracy = kcllocationaccuracythreekilometers locationmanager.pauseslocationupdatesautomatically = true locationmanager.activitytype = CLActivityTypeNavigation // Set allows background if its needed locationmanager.allowsbackgroundlocationupdates = true // Start location updates locationmanager.startupdatinglocation()

51 // Start location updates locationmanager.startupdatinglocation() // Get location updates // Disable background updates when no longer needed locationmanager.allowsbackgroundlocationupdates = false // Stop location when no longer needed locationmanager.stopupdatinglocation()

52 // Start location updates locationmanager.startupdatinglocation() // Get location updates // Disable background updates when no longer needed locationmanager.allowsbackgroundlocationupdates = false // Stop location when no longer needed locationmanager.stopupdatinglocation()

53 // Start location updates locationmanager.startupdatinglocation() // Get location updates // Disable background updates when no longer needed locationmanager.allowsbackgroundlocationupdates = false // Stop location when no longer needed locationmanager.stopupdatinglocation()

54 Location Best Practices Request location Get news based on current location Use quick location update locationmanager.requestlocation()

55 Location Best Practices Request location Get news based on current location Use quick location update locationmanager.requestlocation()

56 Location Best Practices Region monitoring Updating content when arriving at home Use region monitoring // Create the geographic region to be monitored. let georegion = CLCircularRegion(center: overlay.coordinate, radius: radius, identifier: identifier) locationmanager.startmonitoring(for: georegion)

57 Location Best Practices Region monitoring Updating content when arriving at home Use region monitoring // Create the geographic region to be monitored. let georegion = CLCircularRegion(center: overlay.coordinate, radius: radius, identifier: identifier) locationmanager.startmonitoring(for: georegion)

58 Location Best Practices Visit monitoring Updating content when arriving at frequently visited locations Use visit monitoring // Start monitoring locationmanager.startmonitoringvisits() // Stop monitoring when no longer needed locationmanager.stopmonitoringvisits()

59 Location Best Practices Visit monitoring Updating content when arriving at frequently visited locations Use visit monitoring // Start monitoring locationmanager.startmonitoringvisits() // Stop monitoring when no longer needed locationmanager.stopmonitoringvisits()

60 Location Best Practices Visit monitoring Updating content when arriving at frequently visited locations Use visit monitoring // Start monitoring locationmanager.startmonitoringvisits() // Stop monitoring when no longer needed locationmanager.stopmonitoringvisits()

61 Location Best Practices Significant location change Updating content based user location Use significant location change // Start monitoring locationmanager.startmonitoringsignificantlocationchanges() // Stop monitoring when no longer needed locationmanager.stopmonitoringsignificantlocationchanges()

62 Location Best Practices Significant location change Updating content based user location Use significant location change // Start monitoring locationmanager.startmonitoringsignificantlocationchanges() // Stop monitoring when no longer needed locationmanager.stopmonitoringsignificantlocationchanges()

63 Location Best Practices Significant location change Updating content based user location Use significant location change // Start monitoring locationmanager.startmonitoringsignificantlocationchanges() // Stop monitoring when no longer needed locationmanager.stopmonitoringsignificantlocationchanges()

64 Location Best Practices Identify: Accuracy level needed Optimize: Use alternatives to continuous location Reduce: Stop location when not used Coalesce: Defer location updates

65

66 Graphics Minimize screen updates Ensure screen updates provide needed changes Review blur usage Avoid placing blurs over updating elements

67 Graphics MacOS Minimize use of Discrete GPU Use Discrete GPU only when: Animation performance suffers Functionality isn't supported

68 Graphics MacOS Metal MTLCreateSystemDefaultDevice() Always uses Discrete GPU Use Integrated GPU when possible MTLCopyAllDevices - Select device with islowpower attribute set

69 Graphics MacOS OpenGL Make your app mux-aware by either: Adding NSSupportsAutomaticGraphicsSwitching to your info.plist Creating an OpenGL context with the automatic graphics switching attribute let attributes3 : [CGLPixelFormatAttribute] = [ kcglpfasupportsautomaticgraphicsswitching, kcglpfaallowofflinerenderers, CGLPixelFormatAttribute(0) ] CGLChoosePixelFormat(attributes3, &pix, &npix) CGLCreateContext(pPixelFmt, nil, &pcontext)

70 Graphics Best Practices Identify: Blur usage Optimize: Only use discrete GPU when needed (macos) Reduce: Minimize screen updates

71

72 Processing Best Practices Identify tasks Do work quickly and efficiently Avoid timers Set leeway

73 Background Processing Foregrounded Foreground work Background work Overhead Backgrounded Suspended Power Dynamic cost Fixed cost Idle Time

74 Background Processing Finish work quickly Use background app refresh Call completion handler

75 Background Processing ios PushKit API Now has completion handler Call after handling push func pushregistry(_ registry: PKPushRegistry, didreceiveincomingpushwith payload: PKPushPayload, fortype type: PKPushType, withcompletionhandler () -> Void) { // Process the incoming push payload here... } // Then signal that processing has completed completion()

76 Background Processing ios PushKit API Now has completion handler Call after handling push func pushregistry(_ registry: PKPushRegistry, didreceiveincomingpushwith payload: PKPushPayload, fortype type: PKPushType, withcompletionhandler () -> Void) { // Process the incoming push payload here... } // Then signal that processing has completed completion()

77 Background Processing Current Background work Overhead Incoming Push Power Suspended Dynamic cost Fixed cost Idle Time

78 Background Processing With Completion Handler Background work Overhead Incoming Push Completion Handler Power Dynamic cost Fixed cost Idle Time

79 Background Processing WatchOS New: Navigation background mode CPU limits like Workout Minimize networking Ensure work is relevant to the user Use background app refresh and complication updates to refresh data

80 Background Processing Identify: Work done in the background Optimize: Use Background App Refresh Reduce: Limit transactions Coalesce: Use NSURLSession background session

81 Battery Life Concepts Energy Efficient Coding Energy Debugging Tools and Demo Final Thoughts

82 Overview Energy debugging tools Measuring energy impact of your apps Demo

83 Settings: Battery

84 Settings: Battery Can be deleted by users

85 Energy Debugging Workflow Energy Gauges

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118 Scenarios for Energy Debugging General/common Launch and Idle Background Application specific For example, Navigation App - Search for an address - Get directions - Navigate

119 Demo

120 Battery Life Concepts Energy Efficient Coding Energy Debugging Tools and Demo Final Thoughts

121 Final Thoughts Use NSURLSession Background Session Minimize use of continuous location Avoid timers Coalesce work Use energy gauges

122 Related Sessions Advances in Networking, Part 1 Executive Ballroom Wednesday 3:00PM Advances in Networking, Part 2 Executive Ballroom Wednesday 4:00PM NSURLSession: New Features and Best Practices WWDC 2016 Networking for the Modern Internet WWDC 2016

123 Labs Power and Performance Lab Technology Lab I Fri 11:00AM 1:00PM

124

What s New in Energy Debugging

What s New in Energy Debugging #WWDC18 What s New in Energy Debugging Phillip Azar, Apple/Battery Life David Choi, Apple/Battery Life 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

What s New in watchos

What s New in watchos Session App Frameworks #WWDC17 What s New in watchos 205 Ian Parks, watchos Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Quick Interaction Techniques for watchos

Quick Interaction Techniques for watchos App Frameworks #WWDC16 Quick Interaction Techniques for watchos Session 211 Tom Witkin watchos Engineer Miguel Sanchez watchos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Creating Audio Apps for watchos

Creating Audio Apps for watchos Session #WWDC18 Creating Audio Apps for watchos 504 Neil Desai, watchos Frameworks Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What s New in Core Data?

What s New in Core Data? Session App Frameworks #WWDC17 What s New in Core? Persisting since 2004 210 Melissa Turner, Core Engineer Rishi Verma, Core Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Introduction to Siri Shortcuts

Introduction to Siri Shortcuts #WWDC8 Introduction to Siri Shortcuts Session 2 Ari Weinstein, Siri Willem Mattelaer, Siri 208 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

App Extension Best Practices

App Extension Best Practices App Frameworks #WWDC15 App Extension Best Practices Session 224 Sophia Teutschler UIKit Engineer Ian Baird CoreOS Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Data Delivery with Drag and Drop

Data Delivery with Drag and Drop Session App Frameworks #WWDC17 Data Delivery with Drag and Drop 227 Dave Rahardja, UIKit Tanu Singhal, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

What s New in Core Location

What s New in Core Location Core OS What s New in Core Location Session 706 Stephen Rhee Engineering Manager 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

More information

Creating Complications with ClockKit Session 209

Creating Complications with ClockKit Session 209 App Frameworks #WWDC15 Creating Complications with ClockKit Session 209 Eliza Block watchos Engineer Paul Salzman watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display

More information

Multitasking Support on the ios Platform

Multitasking Support on the ios Platform Multitasking Support on the ios Platform Priya Rajagopal Invicara (www.invicara.com) @rajagp Multitasking on ios? Multitasking allows apps to perform certain tasks in the background while you're using

More information

Enhancing your apps for the next dimension of touch

Enhancing your apps for the next dimension of touch App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights

More information

Mastering UIKit on tvos

Mastering UIKit on tvos App Frameworks #WWDC16 Mastering UIKit on tvos Session 210 Justin Voss UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Managing Documents In Your ios Apps

Managing Documents In Your ios Apps Session #WWDC18 Managing Documents In Your ios Apps 216 Brandon Tennant, Software Engineer Thomas Deniau, Software Engineer Rony Fadel, Software Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

What s New in Core Bluetooth

What s New in Core Bluetooth Session System Frameworks #WWDC17 What s New in Core Bluetooth 712 Craig Dooley, Bluetooth Engineer Duy Phan, Bluetooth Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not

More information

New Ways to Work with Workouts

New Ways to Work with Workouts Session #WWDC18 New Ways to Work with Workouts 707 Niharika Bedekar, Fitness Software Engineer Karim Benhmida, Health Software Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in Notifications

What s New in Notifications System Frameworks #WWDC15 What s New in Notifications Session 720 Michele Campeotto ios Notifications Gokul Thirumalai Apple Push Notification Service 2015 Apple Inc. All rights reserved. Redistribution

More information

Writing Energy Efficient Code

Writing Energy Efficient Code Core OS #WWDC14 Writing Energy Efficient Code Part 1 Session 710 Anthony Chivetta OS X Performance & Power 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

What s New in SiriKit

What s New in SiriKit Session App Frameworks #WWDC17 What s New in SiriKit 214 Sirisha Yerroju, SiriKit Engineer Tin Tran, SiriKit Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Sensors. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder

Sensors. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Sensors Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Mobile Application Development in ios 1 Outline Sensor types Sensor availability Accessing

More information

Monetize and Promote Your App with iad

Monetize and Promote Your App with iad Media #WWDC15 Monetize and Promote Your App with iad From design to launch Session 503 Carol Teng Shashank Phadke 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Enabling Your App for CarPlay

Enabling Your App for CarPlay Session App Frameworks #WWDC17 Enabling Your App for CarPlay 719 Albert Wan, CarPlay Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Extending Your Apps with SiriKit

Extending Your Apps with SiriKit App Frameworks #WWDC16 Extending Your Apps with SiriKit Session 225 Vineet Khosla SiriKit Engineering Diana Huang SiriKit Engineering Scott Andrus SiriKit Engineering 2016 Apple Inc. All rights reserved.

More information

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer App Frameworks #WWDC16 What s New in tvos Session 206 Hans Kim tvos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Welcome

More information

What s New in Audio. Media #WWDC17. Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops

What s New in Audio. Media #WWDC17. Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops Session Media #WWDC17 What s New in Audio 501 Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops 2017 Apple Inc. All rights reserved. Redistribution

More information

Introducing Password AutoFill for Apps

Introducing Password AutoFill for Apps Session App Frameworks #WWDC17 Introducing Password AutoFill for Apps Reducing friction for your users 206 Ricky Mondello, ios Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Working with Metal Overview

Working with Metal Overview Graphics and Games #WWDC14 Working with Metal Overview Session 603 Jeremy Sandmel GPU Software 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introducing On Demand Resources

Introducing On Demand Resources App Frameworks #WWDC15 Introducing On Demand Resources An element of App Thinning Session 214 Steve Lewallen Frameworks Engineering Tony Parker Cocoa Frameworks 2015 Apple Inc. All rights reserved. Redistribution

More information

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music Session Media #WWDC17 Introducing MusicKit 502 Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Getting the Most Out of HealthKit

Getting the Most Out of HealthKit App Frameworks #WWDC16 Getting the Most Out of HealthKit What s new and best practices Session 209 Matthew Salesi ios Software Engineer Joefrey Kibuule ios Software Engineer 2016 Apple Inc. All rights

More information

Media and Gaming Accessibility

Media and Gaming Accessibility Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

Designing for Apple Watch

Designing for Apple Watch Design #WWDC15 Designing for Apple Watch Session 802 Mike Stern User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Effective Networking with Swift and ios 8

Effective Networking with Swift and ios 8 Effective Networking with Swift and ios 8 Ben Scheirman @subdigital ChaiOne Agenda Old and Crusty NSURLConnection New Hotness Live Demos! HTTP Caching Bonus Round: API Tips NSURLConnection Invented for

More information

What s New in Xcode App Signing

What s New in Xcode App Signing Developer Tools #WWDC16 What s New in Xcode App Signing Developing and distributing Session 401 Joshua Pennington Tools Engineering Manager Itai Rom Tools Engineer 2016 Apple Inc. All rights reserved.

More information

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer Featured #WWDC15 Building Watch Apps Session 108 Neil Desai watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda

More information

Modern User Interaction on ios

Modern User Interaction on ios App Frameworks #WWDC17 Modern User Interaction on ios Mastering the UIKit UIGesture System Session 219 Dominik Wagner, UIKit Engineer Michael Turner, UIKit Engineer Glen Low, UIKit Engineer 2017 Apple

More information

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML System Frameworks #WWDC17 Core ML in Depth Krishna Sridhar, Core ML Zach Nation, Core ML 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

What s New in CloudKit

What s New in CloudKit System Frameworks #WWDC15 What s New in CloudKit Session 704 Olivier Bonnet icloud Client Eric Krugler icloud Server 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Networking with NSURLSession

Networking with NSURLSession System Frameworks #WWDC15 Networking with NSURLSession Session 711 Luke Case Software Engineer Andreas Garkuscha Software Engineer Dan Vinegrad Software Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

CarPlay Audio and Navigation Apps

CarPlay Audio and Navigation Apps #WWDC18 CarPlay Audio and Navigation Apps Tunes and turns Jonathan Hersh, ios Car Experience Albert Wan, ios Car Experience Mike Knippers, ios Car Experience 2018 Apple Inc. All rights reserved. Redistribution

More information

What s New in imessage Apps

What s New in imessage Apps Session App Frameworks #WWDC17 What s New in imessage Apps 234 Eugene Bistolas, Messages Engineer Jay Chae, Messages Engineer Stephen Lottermoser, Messages Engineer 2017 Apple Inc. All rights reserved.

More information

Building Visually Rich User Experiences

Building Visually Rich User Experiences Session App Frameworks #WWDC17 Building Visually Rich User Experiences 235 Noah Witherspoon, Software Engineer Warren Moore, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

Using and Extending the Xcode Source Editor

Using and Extending the Xcode Source Editor Developer Tools #WWDC16 Using and Extending the Xcode Source Editor Session 414 Mike Swingler Xcode Infrastructure and Editors Chris Hanson Xcode Infrastructure and Editors 2016 Apple Inc. All rights reserved.

More information

What's New in Core Spotlight

What's New in Core Spotlight Session System Frameworks #WWDC17 What's New in Core Spotlight Search on macos and ios 231 John Hörnkvist, Spotlight Lyn Fong, Spotlight 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in SpriteKit

What s New in SpriteKit Graphics and Games #WWDC16 What s New in SpriteKit Session 610 Ross Dexter Games Technologies Engineer Clément Boissière Games Technologies Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

Designing Great Apple Watch Experiences

Designing Great Apple Watch Experiences Design #WWDC16 Designing Great Apple Watch Experiences Session 804 Mike Stern User Experience Evangelist 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

imessage Apps and Stickers, Part 2

imessage Apps and Stickers, Part 2 App Frameworks #WWDC16 imessage Apps and Stickers, Part 2 Interactive Messages Session 224 Alex Carter Messages Engineer Stephen Lottermoser Messages Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

WatchKit In-Depth, Part 2

WatchKit In-Depth, Part 2 App Frameworks #WWDC15 WatchKit In-Depth, Part 2 Session 208 Nathan de Vries watchos Engineer Chloe Chang watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Implementing UI Designs in Interface Builder

Implementing UI Designs in Interface Builder Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer Session App Frameworks #WWDC17 Advances in TVMLKit 202 Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

What's New in Foundation Networking

What's New in Foundation Networking Core OS #WWDC14 What's New in Foundation Networking Session 707 Steve Algernon Senior Wrangler 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Building for Voice with Siri Shortcuts

Building for Voice with Siri Shortcuts #WWDC18 Building for Voice with Siri Shortcuts Session 214 Amit Jain, Siri Ayaka Nonaka, Siri 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What s New in Testing

What s New in Testing #WWDC18 What s New in Testing Session 403 Honza Dvorsky, Xcode Engineer Ethan Vaughan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Using Grouped Notifications

Using Grouped Notifications #WWDC18 Using Grouped Notifications Session 711 Michele Campeotto, ios User Notifications 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Thread Sanitizer and Static Analysis

Thread Sanitizer and Static Analysis Developer Tools #WWDC16 Thread Sanitizer and Static Analysis Help with finding bugs in your code Session 412 Anna Zaks Manager, Program Analysis Team Devin Coughlin Engineer, Program Analysis Team 2016

More information

Beyond Training The next steps of Machine Learning. Chris /in/chrisparsonsdev

Beyond Training The next steps of Machine Learning. Chris /in/chrisparsonsdev Beyond Training The next steps of Machine Learning Chris Parsons chrisparsons@uk.ibm.com @chrisparsonsdev /in/chrisparsonsdev What is this talk? Part 1 What is Machine Learning? AI Infrastructure PowerAI

More information

Touch Bar Fundamentals

Touch Bar Fundamentals Session App Frameworks #WWDC17 Touch Bar Fundamentals 211 Chris Dreessen John Tegtmeyer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

CloudKit Tips And Tricks

CloudKit Tips And Tricks System Frameworks #WWDC15 CloudKit Tips And Tricks Session 715 Nihar Sharma CloudKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Advances in AVFoundation Playback

Advances in AVFoundation Playback Media #WWDC16 Advances in AVFoundation Playback Waiting, looping, switching, widening, optimizing Session 503 Sam Bushell Media Systems Architect 2016 Apple Inc. All rights reserved. Redistribution or

More information

Mastering Drag and Drop

Mastering Drag and Drop Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What s New in Device Configuration, Deployment, and Management

What s New in Device Configuration, Deployment, and Management Session Distribution #WWDC17 What s New in Device Configuration, Deployment, and Management 304 Todd Fernandez, Senior Manager, Device Management and Server 2017 Apple Inc. All rights reserved. Redistribution

More information

Introducing the Modern WebKit API

Introducing the Modern WebKit API Frameworks #WWDC14 Introducing the Modern WebKit API Session 206 Anders Carlsson Safari and WebKit Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

What s New in Cocoa for macos

What s New in Cocoa for macos Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public

More information

Power, Performance, and Diagnostics

Power, Performance, and Diagnostics Core OS #WWDC14 Power, Performance, and Diagnostics What's new in GCD and XPC Session 716 Daniel Steffen Darwin Runtime Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not

More information

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together Session Media #WWDC17 Vision Framework Building on Core ML 506 Brett Keating, Apple Manager Frank Doepke, He who wires things together 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Your Apps and the Future of macos Security

Your Apps and the Future of macos Security #WWDC18 Your Apps and the Future of macos Security Pierre-Olivier Martel, Security Engineering Manager Kelly Yancey, OS Security Garrett Jacobson, Trusted Execution 2018 Apple Inc. All rights reserved.

More information

Advanced Scrollviews and Touch Handling Techniques

Advanced Scrollviews and Touch Handling Techniques Frameworks #WWDC14 Advanced Scrollviews and Touch Handling Techniques Session 235 Josh Shaffer ios Apps and Frameworks Engineer Eliza Block ios Apps and Frameworks Engineer 2014 Apple Inc. All rights reserved.

More information

Understanding Undefined Behavior

Understanding Undefined Behavior Session Developer Tools #WWDC17 Understanding Undefined Behavior 407 Fred Riss, Clang Team Ryan Govostes, Security Engineering and Architecture Team Anna Zaks, Program Analysis Team 2017 Apple Inc. All

More information

Seamless Linking to Your App

Seamless Linking to Your App App Frameworks #WWDC15 Seamless Linking to Your App Session 509 Conrad Shultz Safari and WebKit Software Engineer Jonathan Grynspan Core Services Software Engineer 2015 Apple Inc. All rights reserved.

More information

Advanced Notifications

Advanced Notifications System Frameworks #WWDC16 Advanced Notifications Session 708 Michele Campeotto ios Notifications 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introducing Metal 2. Graphics and Games #WWDC17. Michal Valient, GPU Software Engineer Richard Schreyer, GPU Software Engineer

Introducing Metal 2. Graphics and Games #WWDC17. Michal Valient, GPU Software Engineer Richard Schreyer, GPU Software Engineer Session Graphics and Games #WWDC17 Introducing Metal 2 601 Michal Valient, GPU Software Engineer Richard Schreyer, GPU Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility Frameworks #WWDC14 Accessibility on ios Developing for everyone Session 210 Clare Kasemset ios Accessibility 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

What s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson

What s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson Session App Frameworks #WWDC17 What s New in MapKit 237 Fredrik Olsson 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. MKMapView.mapType.standard

More information

Engineering for Testability

Engineering for Testability Session Developer Tools #WWDC17 Engineering for Testability 414 Brian Croom, Xcode Engineer Greg Tracy, Xcode Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Integrating Apps and Content with AR Quick Look

Integrating Apps and Content with AR Quick Look Session #WWDC18 Integrating Apps and Content with AR Quick Look 603 David Lui, ARKit Engineering Dave Addey, ARKit Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not

More information

Core Data Best Practices

Core Data Best Practices #WWDC18 Core Data Best Practices Session 224 Scott Perry, Engineer Nick Gillett, Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Accessibility on OS X

Accessibility on OS X Frameworks #WWDC14 Accessibility on OS X New Accessibility API Session 207 Patti Hoa Accessibility Engineer! Chris Dolan Accessibility Engineer 2014 Apple Inc. All rights reserved. Redistribution or public

More information

Introducing PDFKit on ios

Introducing PDFKit on ios Session App Frameworks #WWDC17 Introducing PDFKit on ios PDF on macos and ios 241 Jeremy Bridon, Software Engineer Nicki Brower, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Cocoa Touch Best Practices

Cocoa Touch Best Practices App Frameworks #WWDC15 Cocoa Touch Best Practices Session 231 Luke Hiesterman UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Here Comes The Bus. Downloading The App Download the app from Google Play Store or from the Apple App Store

Here Comes The Bus. Downloading The App Download the app from Google Play Store or from the Apple App Store Here Comes The Bus Here Come The Bus Mobile App provides real time alerts of where the schoolbus is along its route. The mobile app allows users to lookup their student s bus stop location. Additionally,

More information

Mobile Development Lab 3

Mobile Development Lab 3 Mobile Development Lab 3 Objectives Illustrate closures through examples Have fun with maps, location and geolocation Have fun with animations Closures implemented in Swift Closures are self-contained

More information

Migration Tool. User Guide. SHOPIFY to MAGENTO. Copyright 2014 LitExtension.com. All Rights Reserved.

Migration Tool. User Guide. SHOPIFY to MAGENTO. Copyright 2014 LitExtension.com. All Rights Reserved. SHOPIFY to MAGENTO Migration Tool User Guide Copyright 2014 LitExtension.com. All Rights Reserved. Shopify to Magento Migration Tool: User Guide Page 1 Contents 1. Preparation... 3 2. Set-up... 3 3. Set-up...

More information

SceneKit: What s New Session 604

SceneKit: What s New Session 604 Graphics and Games #WWDC17 SceneKit: What s New Session 604 Thomas Goossens, SceneKit engineer Amaury Balliet, SceneKit engineer Anatole Duprat, SceneKit engineer Sébastien Métrot, SceneKit engineer 2017

More information

Finding Bugs Using Xcode Runtime Tools

Finding Bugs Using Xcode Runtime Tools Session Developer Tools #WWDC17 Finding Bugs Using Xcode Runtime Tools 406 Kuba Mracek, Program Analysis Engineer Vedant Kumar, Compiler Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

What s New in NSCollectionView Session 225

What s New in NSCollectionView Session 225 App Frameworks #WWDC15 What s New in NSCollectionView Session 225 Troy Stephens Application Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

What s New in Swift Playgrounds

What s New in Swift Playgrounds Session Developer Tools #WWDC17 What s New in Swift Playgrounds 408 Connor Wakamo, Playgrounds Engineer Grace Kendall, Playgrounds Engineer Najla Bulous, Playgrounds Engineer 2017 Apple Inc. All rights

More information

Mysteries of Auto Layout, Part 1

Mysteries of Auto Layout, Part 1 App Frameworks #WWDC15 Mysteries of Auto Layout, Part 1 Session 218 Jason Yao Interface Builder Engineer Kasia Wawer ios Keyboards Engineer 2015 Apple Inc. All rights reserved. Redistribution or public

More information

Sharepoint 2010 How Manually Update Web Analytics Workflows Timer Job

Sharepoint 2010 How Manually Update Web Analytics Workflows Timer Job Sharepoint 2010 How Manually Update Web Analytics Workflows Timer Job The SharePoint 2010 Timer service (SPTimerv4) runs timer jobs. list depending on installed service pack version and cumulative updates

More information

Leveraging Touch Input on ios

Leveraging Touch Input on ios App Frameworks #WWDC16 Leveraging Touch Input on ios And getting the most out of Apple Pencil Session 220 Dominik Wagner UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Building Apps with Dynamic Type

Building Apps with Dynamic Type Session App Frameworks #WWDC17 Building Apps with Dynamic Type 245 Clare Kasemset, Software Engineering Manager Nandini Sundar, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

AVContentKeySession Best Practices

AVContentKeySession Best Practices Session #WWDC18 AVContentKeySession Best Practices 507 Anil Katti, AVFoundation Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Metal for Ray Tracing Acceleration

Metal for Ray Tracing Acceleration Session #WWDC18 Metal for Ray Tracing Acceleration 606 Sean James, GPU Software Engineer Wayne Lister, GPU Software Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Stream iphone Sensor Data to Adafruit IO

Stream iphone Sensor Data to Adafruit IO Stream iphone Sensor Data to Adafruit IO Created by Trevor Beaton Last updated on 2019-01-22 04:07:41 PM UTC Guide Contents Guide Contents Overview In this learn guide we will: Before we start... Downloading

More information

What s New in Metal, Part 2

What s New in Metal, Part 2 Graphics and Games #WWDC15 What s New in Metal, Part 2 Session 607 Dan Omachi GPU Software Frameworks Engineer Anna Tikhonova GPU Software Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

ITP 342 Mobile App Dev. Locations and Maps

ITP 342 Mobile App Dev. Locations and Maps ITP 342 Mobile App Dev Locations and Maps Locations and Maps Every ios device has the ability to determine where in the world it is Create a live interactive map showing any locations you like, including

More information

Profiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer

Profiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer Developer Tools #WWDC15 Profiling in Depth Do you know where your code is? Session 412 Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer 2015 Apple Inc. All rights reserved.

More information

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility App Frameworks #WWDC15 ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

JavaScript for Automation

JavaScript for Automation Services #WWDC14 JavaScript for Automation Session 306 Sal Soghoian Product Manger Automation Technologies 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Content Protection for HTTP Live Streaming

Content Protection for HTTP Live Streaming Media #WWDC15 Content Protection for HTTP Live Streaming Session 502 Roger Pantos HTTP Live Streaming Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

New UIKit Support for International User Interfaces

New UIKit Support for International User Interfaces App Frameworks #WWDC15 New UIKit Support for International User Interfaces Session 222 Sara Radi Internationalization Software Engineer Aaltan Ahmad Internationalization Software Engineer Paul Borokhov

More information