0

In objective-c for iOS dev, is there any way to programatically toggle the vibrate on/off? And also to check its current state?

If there is, where might I find it in documentation? I've looked and cannot find it so maybe it's not possible?

Edit: I don't mean to make the phone vibrate. What I mean is that when the phone is on silent there is a toggle to have vibration on/off. Can this be controlled programatically?

TryinHard
  • 4,078
  • 3
  • 28
  • 54
DT.DTDG
  • 765
  • 1
  • 13
  • 31
  • possible duplicate of [Making the iPhone vibrate](http://stackoverflow.com/questions/4724980/making-the-iphone-vibrate) – Robert J. Clegg Aug 21 '15 at 11:02
  • 1
    I think it's not possible to toggle the vibration state as it's up to a physical button. What you can do is to make the phone vibrate programmatically. – fray88 Aug 21 '15 at 11:06
  • Thanks. Updated my question with a better explanation. – DT.DTDG Aug 21 '15 at 11:10

1 Answers1

1

No you can't.
This is a system defined property (that your user can access from Settings).
None of the iOS APIs allow such kind of control.

Quentin Hayot
  • 7,786
  • 6
  • 45
  • 62