VNDocumentCameraViewController disable Auto Scan - ios

VNDocumentCameraViewController scans the documents automatically. I want to scan documents only when user taps shutter button. Is there any way to accomplish this?

Related

iOS Swift: run screen recording programmatically

Is it possible to start screen recording (through Control Center) without user prompt?
I mean to ask user permission for the first time and after that to start and stop recording programmatically only?
I need to record screen only for specific events.

Swift detect power button press event

Is it possible to somehow get a callback when the user presses on the physical power button on iOS? Just to make sure, I am not actually trying to change the behaviour of the power button, I just need to know when it was pressed.
Here is some extra info to explain why I need this callback. Our app uses a guided access mode to lock students in test and although guided access allows locking the device via the power button, that lock, unfortunately, causes our sockets to disconnect so we do not allow that. So what I need now is to detect the power button press so I can implement a fake lock in our app where I will dim the display and show a black image on top to save some battery power.

iOS: How to control sound volume (not ringer) when user presses button?

I have some speech in my app.
The iPhones buttons only affect the volume while the phone is speaking. As soon as the sentence finishes, the buttons affect the 'ringer' volume.
But I would like for the buttons to always affect 'volume' when my app is open. How can I achieve this?

Is there any way to edit a UITextField with dictation only?

I mean I do not want to use a keyboard. I have a button that I want the user to press that will trigger the microphone and input speech into the textField.
I've searched everywhere for tutorials on how to do this; I'm not finding anything. Is it impossible?

Can we add widget for app in iOS and if not ,is there any alternative?

I came to know that iOS does't support widgets this is what i have read.But i am making application on Security in iOS, i want the user to perform some action when he is in need of help without opening the application.
I know iOS supports few background modes like play audio,receive location updates,voip etc.
Can anyone suggest me any alternative to fire some methods without opening the application like pressing some button when in dangerous situation to call those methods.
I don't know whether we can do it or not.
But have a look.
You said we can implement background modes like audio, location, voip updates etc.
Let take the example of Audio mode. It has previous, play/pause, and next button in the lockscreen.
What you can do is play an audio when the application is in background mode.
Check whether the any of the music buttons are pressed more than 3 times. If this is the case trigger alert messages for security and send them to appropriate persons or do your own action.
I don't know whether we can do this or not. Even if it is possible, I can't say Apple will allow such false actions for buttons which are meant for some purpose.
Also see whether we can get detect volume button presses when in background mode. If that is possible you can do that. Because even my LG mobile has an SOS mode which is enabled when I press volume buton in lockscreen 4 times. Apple may allow this action if it possible

Resources