Esempio n. 1
0
 /// <summary>
 /// OnApplicationFocus is called when the application gains or loses focus.
 /// When the user goes to the home screen or to another app, focus is lost, and this method is called with the argument set to false.
 /// When the user re-opens the app and focus is gained, this method is called with the argument set to true.
 ///
 /// NOTE: On Android, when the on-screen keyboard is enabled, it causes a OnApplicationFocus( false ) event.
 /// Additionally, if you press Home at the moment the keyboard is enabled, the OnApplicationFocus() event is not called, but OnApplicationPause() is called instead.
 /// </summary>
 ///
 /// <param name="focusStatus">True if the app has gained focus, false if it has lost focus.</param>
 void OnApplicationFocus(bool focusStatus)
 {
     if (_trackerPlugin != null)
     {
         _trackerPlugin.OnApplicationFocus(focusStatus);
     }
 }