iPhone - hide assistive touch view programmatically - iphone

Does anyone know how to hide assistive touch view programmatically like Apple Music App does when playing video?

There is no SDK method to hide the assistive view.
Apple iPod App is done by Apple, so the App is probably using some private / undocumented SDK calls.

Yes there is. Go to Settings then General then Accessibility then Triple Click Home. Now choose Assistive Touch. Now whenever you want it to disappear just triple click the Home button on either the actual iPhone or using the Assustive Touch icon itself. Poof and its gone! To bring it back just triple click again.

Related

WatchOS 8 pressing one of the side buttons dismisses modal sheet

The behavior of the crown button on the Apple Watch has always been to close your app and take you to your Home Screen / watch face. Now when I build my watch app with Xcode 13 and WatchOS 8 when I press one of the side buttons it dismisses whatever modal sheet I have in my app.
This is a terrible user experience as my app is a workout app and I want my users to quickly get to other apps such as music while they are working out without closing everything out.
Apple's workout app presents a modal to add a workout but when I hit the side button in their app it takes me to the Home Screen. I have tried to watch all the latest videos and read the documentation but I don't see anywhere that I can disable this new functionality of the side buttons. Anyone know how I can change the physical side button behavior for my app? Thank you for your help!
It is a new feature. Add .interactiveDismissDisabled() to the content on the sheet or fullScreenCover.
https://developer.apple.com/documentation/swiftui/navigationview/interactivedismissdisabled(_:)
This is working as intended, it got changed in WatchOS 8.
Your best bet would be to submit it to Apple feature assistant.

Swiftui sheets on mac app doesn't work properly

When attempting to use sheets on a Mac OS app, it's not interactable (sliding down to go back to the previous view) like on iOs. Is this normal or would I need a workaround to go back to the previous view?
You’ll need a close button on macOS, there is no dismissal gesture. If your app supports iOS too, it’s probably wise to have a close button there too — not all iPad users are familiar with the gesture, and the gesture doesn’t work on landscape phones.

Android Enable WebView Touch Sound

I need to play touch sounds on Web view event clicks, I enabled the Touch sounds and tried it on android version less than 4.1 it works fine, from my Web View i click the radio button it make to hear the click sounds but on 4.1 and above it doesn't make click sound when I click radio button or button clicks even . I hope it's disabled from the sdk Web view itself at 4.1 and above. Let me have any possible solution to fix the issue.
Thanks in advance!
I believe this is not possible, since the events inside the WebView are not passed to the Android system, you may have a chance to create such beheaviour by embedding these sounds inside the webpage you are rendering inside the WebView.

How can I make a screenshot of iPhone desktop programmatically?

I need to make a screenshot of the iphone desktop and set it as background for my app, is it possible?
UIGetScreenImage should do what you want - check out this example.
But apparently, Apple (in its great wisdom) has banned its usage in apps for the App Store, and has removed it from iOS 7 arm64 and newer.
If you are looking to take a screenshot then you need to press the menu button and the lock button at the same time, as for setting it as the background of the app, just use the image which will automatically be placed in your camera roll.

Can I create custom keyboard in iPhone?

Is it allowed to create a custom keyboard. Will apple approve my app if I used my own keyboard instead of using default one. howsoever I don't have button images, I guess I need to use same default keyboard images do so. Is there any image repository where I can get exact keypad button icon.
Thanks
They will almost undoubtedly reject your app.
The iPad Human Interface Guidelines that iPhone OS 3.2 supports keyboard customization http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadHIG/UIElements/UIElements.html#//apple_ref/doc/uid/TP40009446-CH6-SW7