There are two ways to get notified when an application goes into the background:
and. Override the appropriate method in AppDelegate:
public override void DidEnterBackground(UIApplication application)
{
}
. NSNotificationCenter:
NSObject observer = NSNotificationCenter.DefaultCenter.AddObserver(
UIApplication.DidEnterBackgroundNotification,
delegate(NSNotification ntf) {
});
NSObject, AddObserver, , :
NSNotificationCenter.DefaultCenter.RemoveObserver(observer);