I'm thinking to start in raspberry world, in my case, with Windows IoT.
I want to assemble the raspberry with a touch screen and i doubt about a concrete feature:
When my app need to show an alert, How i can wake-up the screen? (i supose that the screen is in sleep mode by tiemout or similar)
And, when i want to wake up the screen to manage the system, Can i handle the touch events when screen is sleeping? The screen wake-up automatically when i touch it? I don't want use keyboard or any other input method except the touch.
Is this scenario possible?
Thanks
Related
How can I check if the device is a touch device or a mouse device?
Using kIsWeb is not sufficient because if using web version of the app on a mobile device kIsWeb returns true, but I need it to return false because it is a touch device.
Checking the platform doesn't work either because if using web version of the app on an iOS device for example returns false for iOS platform check.
Use case - I have two different types of video players for my app. One is suitable for touch devices (you tap to show and hide controls) and one is suitable for mouse devices (controls show when you mouse into the player and hide when you mouse out).
Youtube has the same idea. If I use the youtube app or website on my iPhone I get touch controls. If I use the youtube app or website on my iPad Pro I get touch controls. If I use the youtube website on my Mac I get mouse controls at all screen sizes (even mobile screen sizes).
So I guess I really just need to know platform on the web. I can get platform if not on the web.
Great question #jwasher! I had the same issue - a touch and swipe based UI that was great as a native mobile app, great as an single page web app (SPA) on mobile web browsers, but that was weird and clunky for mouse based interactions when the SPA was used in a desktop web browser.
The solution I have settled on is to wrap sensitive widgets in a MouseRegion (https://api.flutter.dev/flutter/widgets/MouseRegion-class.html) to detect mouse activity at runtime, then reacting by augmenting the UI with buttons to provide a mouse focussed way of triggering actions previously only linked to touch triggers.
You could use this to "mouse-enable" individual widgets, or you could wrap the whole app in a MouseRegion, trip a state field when activity was detected then rebuild the widget tree in a substantially different way for point and click users.
This strategy may incur some minor complexity/CPU overhead on devices that will never have a mouse attached (like a smartphone), but the solution will be more flexible than a build or configuration time capability determination. If a user starts the app on a tablet, then puts it in a stand and attaches a bluetooth mouse - it will react appropriately.
A device isn't "a mouse device" or "a pointer device". Events have an input type--see Pointer event.kind--but not the whole device. A laptop can have a touch screen, and a tablet can have a stylus or external mouse; an app running in those environments can receive both types of event.
Without knowing what you are trying to accomplish with this classification, is hard to advise on how to accomplish it. Trying to style your UI based on a guess of the primary interaction mode, for instance, is a completely different problem than reacting to a mouse event differently than a touch event.
We created an application with Flutter which allows to check if the position of the phone is vertical, once the phone is horizontal it launches an audible alert and a message appears on the screen, it works perfectly when the application is open .
We wish that once the application launch even if the phone is locked or the application is minimized, the application continues and check if the position of the phone is still vertical and still launch the message on the screen + the audible alert, do you have any idea if this is possible with Flutter? we did not find any track.
Thank you in advance for your answers, it will help us move forward a lot.
It should be possible with background processes
Hey can anyone assist me in letting me know what to use to effectively start a flutter app from hardware detection?
I see that there's a hardware detection plug in but this only works when the application is open.
I'm trying to get the app to automatically start or display an Alert Dialog Widget after tapping say the power button after 3 times.
I am not sure what technologies/plugins to use. Can anyone assist?
I am in need of monitoring the camera hardware in android phone for an application i am building. I want to get an alert every time the camera hardware is accessed. Is there any possible way for this....?
You can set up a BroadcastReceiver that will receive any camera button presses if that's what you want to do.
Does iphone support multitasking for third party applications.Canone explain me how.
Assuming your device is newer than an iPhone 3G (or 1st gen iPod Touch), then yes, your application may run in the background. Note that even iOS4 doesn't allow multitasking on the older devices. What happens in iOS4 and above is that when you press the home button from an application, it switches the current app to the background - however, it is still running.
When working with games this means you have to use your application delegate to pause your game when the application is sent to the background, and (optionally) resume it when it returns, or present a "pause menu". It should also switch to a low/idle rendering loop (4FPS or similar), however, extra care has to be taken with iPad apps, which do not allow OpenGL rendering in an application that is currently in the background (in my experience). For these cases you have to completely disable the OpenGL render loop. These steps will prevent your application using unnecessary processing power while in the background.
You can see what's currently running in the background by double-tapping the home button on your device. The icons for all the apps will appear in a sliding list at the bottom of the screen. You can press and hold them to bring up the little X's allowing you to terminate the processes.