I am developing iOS Universal Application in Xamarin.iOS using MVVMCross. I want to calculate App Idle time I found the following useful help
iOS:Convert ObjC code to C#, How to know the time app has been idle
But there is an issue when i try to use this with MVVMCross which is that AppDelegate.cs in MvvmCross is inherited from MvxApplicationDelegate.cs
I am unable to override the following event in AppDelegate because it is not overriding UIApplication
public override void SendEvent (UIEvent uievent)
{
base.SendEvent (uievent);
var allTouches = uievent.AllTouches;
if (allTouches.Count > 0) {
var phase = ((UITouch)allTouches.AnyObject).Phase;
if (phase == UITouchPhase.Began || phase == UITouchPhase.Ended)
ResetIdleTimer ();
}
}