From the course: Apple watchOS App Development: Advanced APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Complication timelines: Background

Complication timelines: Background

From the course: Apple watchOS App Development: Advanced APIs

Start my 1-month free trial

Complication timelines: Background

- [Instructor] So far, you set the timeline by timeline entries you know. Often, content gets pushed to the watch from another source, and you need to show it on the watch's complication. Once again, we go into the background modes and watch connectivity to get this working. There's one more method on watch connectivity for sending complications. Transfer current complication user info works almost the same as transfer user info. Go ahead and close the app and close the console. You might want to shrink it also first because we're not going to need it that big again. I'm going to drop it down all the way to here. Now head up to the view controller and then below background transfer, add a complication transfer method. This is a WC session background transfer, so like most of the ones we've already talked about, we're going to need to do an activation state check. Now inside that, we're going to check another thing. We're going to check if the complication is used on the watch face. So…

Contents