library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/GlViewGroup.java
@UiThread
  public boolean simulateClick(int action, float yaw, float pitch) {
    if (!isVisible()) {
      return false;
    }
    PointF point = canvasRenderer.translateClick(yaw, pitch);
    if (point == null) {
      return false;
    }
    long now = SystemClock.uptimeMillis();
    MotionEvent event = MotionEvent.obtain(now, now, action, point.x, point.y, /* metaState= */ 1);
    dispatchTouchEvent(event);
    return true;
  }
/**
   * Simulates a click on the view.
   *
   * @param action Click action.
   * @param yaw Yaw of the click's orientation in radians.
   * @param pitch Pitch of the click's orientation in radians.
   * @return Whether the click was simulated. If false then the view is not visible or the click was
   *     outside of its bounds.
   */
Simulates a click on the view.
@param action Click action.
@param yaw Yaw of the click's orientation in radians.
@param pitch Pitch of the click's orientation in radians.
@return Whether the click was simulated. If false then the view is not visible or the click was
outside of its bounds.
Simulates a click on the view . @param action Click action . @param yaw Yaw of the click ' s orientation in radians . @param pitch Pitch of the click ' s orientation in radians . @return Whether the click was simulated . If false then the view is not visible or the click was outside of its bounds .
@UiThread
  public boolean simulateClick(int action, float yaw, float pitch) {
    if (!isVisible()) {
      return false;
    }
    PointF point = canvasRenderer.translateClick(yaw, pitch);
    if (point == null) {
      return false;
    }
    long now = SystemClock.uptimeMillis();
    MotionEvent event = MotionEvent.obtain(now, now, action, point.x, point.y, /* metaState= */ 1);
    dispatchTouchEvent(event);
    return true;
  }
@ UiThread public boolean simulateClick ( int action , float yaw , float pitch ) { if ( ! isVisible ( ) ) { return false ; } PointF point = canvasRenderer . translateClick ( yaw , pitch ) ; if ( point == null ) { return false ; } long now = SystemClock . uptimeMillis ( ) ; MotionEvent event = MotionEvent . obtain ( now , now , action , point . x , point . y , /* metaState= */ 1 ) ; dispatchTouchEvent ( event ) ; return true ; }
Simulates a click on the view.
Simulates a click on the view .