code: public void updateFrontFacingRotation(float rotation) {
          if (!Float.isNaN(rotation) && !equal(rotation, frontFacingRotation)) {
              final float oldRotation = frontFacingRotation;
              frontFacingRotation = rotation % 360;
              for (OnFrontRotationChangedListener listener : mOnFrontRotationChangedListeners) {
                  try {
                      listener.onFrontRotationChanged(this, frontFacingRotation, oldRotation);
                  } catch (Exception e) {
                      e.printStackTrace();
                      Log.e(TAG, e, "updateFrontFacingRotation()");
                  }
              }
          }
      }
docs: Set new front facing rotation
  @param rotation