Get all selected Accessibility Options in iOS app - ios

I would like to check the user's accessibility settings like font size, inverted colors, and all the ones that are relevant.
I want to do this to evaluate and asses how to better my user experience based on the accessibility settings that users are using.
I could find the getResources() api for Android but nothing for iOS through a quick search online

I would like to check the user's accessibility settings...
Every accessibility options defined in the settings are not necessary reachable.
I suggest to take a look at:
This list containing all the accessibility options with their notification name (ObjC + Swift) to be informed when their state changes hereunder:
This detailed way of activating each one of them on your device settings.
This list of accessibility options is exhaustive until new features are exposed by Apple itself.

You might need to check for some of them individually.
A few examples:
Is Voice over running
UIAccessibilityIsVoiceOverRunning()
Has the user inverted colours:
UIAccessibilityIsInvertColorsEnabled()
A few auto complete options for UIAccessibilityIs....

Related

Check options from iPhone settings (Text Live)

In my application I want to use the live text option, but I have a conundrum, namely how exactly can I get the information if the user has the option enabled on the iPhone? I would not like the possibility of using this option to be visible for people who have this feature turned off.

Is there a way to get all device's accessibility settings using UIAccessibility?

I need to delivery content to the user based on some accessibility settings state (on/off).
It seems that UIAccessibility doesn't expose all the settings.
For instance, I know the state of the Closed Captions setting by calling:
UIAccessibility.isClosedCaptioningEnabled
However, the Audio Description one is not exposed. I expected to have something like:
UIAccessibility.isAudioDescriptionEnabled
Best!
Every accessibility options defined in the settings are not necessary reachable.
I suggest to take a look at:
This list containing all the accessibility options with their notification name (ObjC + Swift) to be informed when their state changes hereunder:
This detailed way of activating each one of them on your device settings.
This list of accessibility options is exhaustive until new features are exposed by Apple itself.
Check out this framework. It is pretty handy when it comes to accessibility settings in iOS. --> https://github.com/chrs1885/Capable

Siri Shortcuts: How do I create a UI for the intent parameters of an iOS shortcut?

I'm trying to create an INIntent to be set up with the new iOS Shortcuts app in iOS 12. I have read the documentation and watched the apple video about it.
I have managed to set everything up and the shortcuts work well, however I can’t seem to figure out how to make customizable options that the user can edit when setting up the shortcut. An example of this would be how the Calendar app’s shortcuts are set up:
Notice the options for Get, Add Filter, Sort by, etc..
I know I can add parameters to the intents in the Intents.intentdefeniton file, but those parameters needs to be set from the app itself before the interaction is donated to the iOS system via SiriKit.
Regardless of what I do the Intent just shows up empty without options.
Any help is appreciated!
I am sorry to bring you bad news, but there is no way to do that. The apps that appear there (like Trello, Overcast, Pocket, etc...) were already supported by Workflow.app before Shortcuts.app was released.
You can try to work around it by calling URL Schemes directly but it might not be the solution you are after.
I think you need to create an Intents UI Extension for this.
https://developer.apple.com/documentation/sirikit/creating_an_intents_ui_extension

Is it allowed by Apple to have the Signout function from the Settings?

Is it allowed, by Apple, to have the Signout function from the Settings page?
I just want the app to be as clean as possible so we don't have any Signout function from within the app itself =)
As you might notice in the docs, settings bundles are "dumb UI" -- that is, your bundle provides to the Settings app a list of NSUserDefaults keys for storing your app's preferences, along with a high-level specification for how they're to be presented in the UI... but there's no way to provide executable code for directly responding to changes made in the Settings app, drawing custom controls, etc.
So you can't just put a button in Settings that signs the user out of your service when tapped -- you can, as JoePasq suggests, add a switch or other control to the effect of "sign out on next launch". That switch can set a value in NSUserDefaults, which your app can then read when launched and react to accordingly.
From what I know: Sure. The HIG says
Preferences in the Settings app are of the “set once and rarely change” type.
You need to decide how to implement it. I would use a switch titled “Sign out on next use”.

How to set a specific keyboard inside an iPhone app?

In an iPhone app I want the user to do some input in a different language.
For example the user is an English speaker and has his(or her) device set with the English language. When running my app he(or she) will have to input some French and some Japanese.
Is there a way I can bring the proper keyboard from inside the app without forcing the user to change his(or her) usual settings. According to what I have read up to now, I am not sure there is a good answer. I still hope.
Thanks for any tip.
You can usually pick certain keyboards (numeric, email, etc) from the interface-builder-like aspects of UITextFields, so take a peek at the code options for setting those things. You may be able to pick it that way.

Resources