コード例 #1
0
 /**
  * Called to end preempting.
  *
  * @param displayId ID of the Display
  */
 public void stopPreempting(int displayId) {
   foregroundEventProducer.sendDisplayBackgroundNotifyEvent(displayId);
   requestForeground(currentDisplayId, false);
 }
コード例 #2
0
 /**
  * Called to start preempting. The given display will preempt all other displays for this isolate.
  *
  * @param displayId ID of the Display
  */
 public void startPreempting(int displayId) {
   foregroundEventProducer.sendDisplayBackgroundNotifyEvent(displayId);
   requestForeground(displayId, true);
 }