I have a certain screen in an apple watch application that I would like to lock or freeze, so that it displays when I rotate my wrist
Right now when I go to this screen and turn or move my wrist, the watch shuts off. Is there a way to prevent this from happening for a particular screen?
Unfortunately, there is no WatchKit method that allows you to control the app suspension behavior.
Related
In the apple watch's passcode setting screen the passcode on top updates as soon as a user clicks on the buttons and not after lifting the finger. How can one achieve that in Xcode 6.3? Because the only event that triggers the ibaction is the touch up event
I don't think that behavior is possible with the current version of WatchKit. Apple is likely using their own internal method to accomplish that (as they do with many/most of the default Watch apps). Hopefully we'll get more functionality in the next major update.
I have a splash screen for my launcher, but it doesn't go away. It only disappear when I exit the program.
I want it to go away when the program starts, how can I do that?
This can happen if no AWT window is shown. You can call
com.install4j.api.launcher.SplashScreen.hide()
from your application.
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?
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.
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)
I have two overlapping images. I touch the topmost image and start moving (touchmove) finger around. All subsequent touchmove events are received by that image. In the middle of this interaction I want the events to go to the image underneath, so that I can move it around instead.
How to change the event source to the image underneath? That is, once an object has started receiving touch events, how do I change the target of those events?
I suspect that Joe Blow is talking about handling touch events in the context of a native iPhone app built with Objective-C.
Eric's question is about handling touch events in Mobile Safari with JavaScript.
I could be confused though...
I've got a Maemo (Qt) app that does some integration with the built-in media player via D-Bus. All the control functionality I need is complete, but I've got a requirement to show my application window (which gets backgrounded when playback starts) instead of the media player when the playback window is closed (it's a stacked window).
It should go like this: user clicks item in my Qt application, which launches the media file in the native media player. User watches media file, exits by clicking the arrow on the playback window. I'd like to somehow catch this event and bring my application to the front instead of showing the media player's main window.
Is it even possible on Maemo? I'm thinking that some low-level X coding might be required.
Answer was painfully obvious, I can catch a state_changed signal from D-Bus- state=0 when the window is closed.
You can also use the raise() method of Qt windows.