# setMaximumIod method

void setMaximumIod(

1. int maximumIod

)

Sets the maximum interocular distance (IOD), in pixels. This parameter is used to prevent the subject from being too close to the camera. Hint: Default value is 512.

param maximumIod Maximum interocular distance (IOD), in pixels. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setMaximumIod(int maximumIod) {
      var err = faceSDK.id3FacePortraitProcessor_SetMaximumIod(_pHandle.value, maximumIod);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }