# getFaceMask method

int getFaceMask()

Gets the value indicating whether a face mask is detected. The range is 0-100, 100 meaning a mask is detected.

return Value indicating whether a face mask is detected. The range is 0-100, 100 meaning a mask is detected. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getFaceMask() {
      Pointer<Int> pFaceMask = calloc();
      try {
        var err = faceSDK.id3FacePortrait_GetFaceMask(_pHandle.value, pFaceMask);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vFaceMask = pFaceMask.value;
        return vFaceMask;
      } finally {
        calloc.free(pFaceMask);
      }
    }