# setSmileThreshold method

void setSmileThreshold(

1. int smileThreshold

)

Sets the smile threshold. If the Smile score is above this value, the detected face is definitely smiling. Hint: Default value is 75.

param smileThreshold Smile threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setSmileThreshold(int smileThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetSmileThreshold(_pHandle.value, smileThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }