# getSmile method

int getSmile()

Gets the value indicating whether the subject is smiling. -1 if not computed. The range is 0-100, 100 meaning the person is smiling.

return Value indicating whether the subject is smiling. -1 if not computed. The range is 0-100, 100 meaning the person is smiling. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getSmile() {
      Pointer<Int> pSmile = calloc();
      try {
        var err = faceSDK.id3FacePortrait_GetSmile(_pHandle.value, pSmile);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vSmile = pSmile.value;
        return vSmile;
      } finally {
        calloc.free(pSmile);
      }
    }