|  | 
| void | onReceive (Context context, Intent intent) | 
|  | 
Definition at line 18 of file ScreenReceiver.java.
 
◆ onReceive()
  
  | 
        
          | void com.freerdp.freerdpcore.application.ScreenReceiver.onReceive | ( | Context | context, |  
          |  |  | Intent | intent |  
          |  | ) |  |  |  | inline | 
 
Definition at line 21 of file ScreenReceiver.java.
   22  {
   23    GlobalApp app = (GlobalApp)context.getApplicationContext();
   24    Log.v("ScreenReceiver", "Received action: " + intent.getAction());
   25    if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF))
   26      app.startDisconnectTimer();
   27    else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON))
   28      GlobalApp.cancelDisconnectTimer();
   29  }
 
 
The documentation for this class was generated from the following file: