Forum Xamarin.iOS

Detecting Lock Button click for iOS in Xamarin

Hi All,
I want functionality in which I have to kill application when lock button is pressed. Currently, Xamarin Forms support only 3 lifecycle events: onStart, onStop and onResume. I tried overriding OnStop method but it is also called when the app is minimized (home button is pressed), so I cannot use onStop method. Any help is appreciated.



Sign In or Register to comment.