How to switch On/Off accessibility keyboard using swift code for OS X

Hi i am creating app for disabled persons and I want the code to switch on off the accessibility keyboard and want to these setting through swift code.

Can you guide me for any apis which can be used for this.

Any Help would be appreciated.

Replies

You cannot turn accessibility on or off using code. You must direct the user to open the appropriate System Preferences pane and turn it on or off manually.