iOS Question Activity_KeyPress detection

Ertan

Active Member
Licensed User
Hi
I want to create an event when the power button of the phone is pressed in my project.
Screenshot_1.png

Keycodes it can not be found.
B4X:
Main - 119: Undeclared variable 'keycodes' is used before it was assigned any value.
I don't have a problem with Android phones.
I could not find a solution in the forum.
 
Top