cwgso
cwgso

Reputation: 421

Using WatchKit, is there a method to keep the screen on?

My app displays various countdown timers that the user will view to see when to do various tasks. I'd like this screen to stay on display on the watch while the app is in the foreground. Currently, the screen will auto-turn off and if I stay away from flicking my wrist, the app will even become suspended.

Is this just something I'm going to have to design around, or is there a method I can't find to change this behavior?

Upvotes: 3

Views: 610

Answers (2)

coolioxlr
coolioxlr

Reputation: 298

The correct way to have a countdown timer on the watch is to add it to the complication.

It supports a timer automatically when you provide a future date

CLKRelativeDateTextProvider(date: wakeupDate, style: .timer, units: .second)

Upvotes: 0

Mike Swanson
Mike Swanson

Reputation: 3347

There is no method in WatchKit to programmatically keep an app alive/awake. As you've suggested, you'll have to design around this limitation.

Upvotes: 4

Related Questions