ios - Control vibration for our application irrespective of mobile state -


can control vibration mode of mobile phone our application.i mean cab turn on/off vibration should change our app itself.

can in latest ios version.

you can use

audioservicesplaysystemsound(ksystemsoundid_vibrate);  

note need add audiotoolbox framework , import following header file:

import <audiotoolbox/audioservices.h> 

hope helps.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -