Ayaz Alavi
Ayaz Alavi

Reputation: 4835

iOS: Home/Power Pressed Event

If an app is being distributed via Enterprise signing then is there any framework that allow me to receive Home or Power pressed events in background?

Upvotes: 0

Views: 180

Answers (2)

Nicolò Ciraci
Nicolò Ciraci

Reputation: 678

All events in iOS are UIEvent that it's a wrapper of GSEvent. With a bit of hacking you should be able to add a callback function of some GSEventRef. Here there are the headers of the framework, or just dump it yourself :)

Upvotes: 1

Woodstock
Woodstock

Reputation: 22926

No unfortunately this is not possible, there are no public API's to achieve this, and from my research there doesn't seem to be knowledge of a private API either.

Upvotes: 0

Related Questions