# getFaceId method

int getFaceId()

Gets the unique face ID.

return Unique face ID. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getFaceId() {
      Pointer<Int> pFaceId = calloc();
      try {
        var err = faceSDK.id3FacePortrait_GetFaceId(_pHandle.value, pFaceId);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vFaceId = pFaceId.value;
        return vFaceId;
      } finally {
        calloc.free(pFaceId);
      }
    }