Swift Development for the Apple Watch by Jon Manning

Swift Development for the Apple Watch by Jon Manning

Author:Jon Manning
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-06-12T16:00:00+00:00


// Define the activity that the user is doing let activityType = "au.com.secretlab.SwiftDevForAppleWatch.funActivity" // Add some additonal information that provides more context let activityInfo = [ "additionalInfoForTheApp": "tennis" ] // Indicate to the system that the user // is now doing an activity self.updateUserActivity(activityType, userInfo: activityInfo, webpageURL: nil)

Note

You can also optionally pass in an NSURL object that contains the URL of a web page to load the activity in a browser; however, we’ll be focusing on using handoff with apps in this book.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.