# getProductReference static method

String getProductReference()

Retrieves the license product reference.

return The product reference. throws FaceException An error has occurred during Face Library execution.

## Implementation

    static String getProductReference() {
      Pointer<Char> pProductReference = calloc.allocate(256);
      Pointer<Int> pProductReferenceSize = calloc.allocate(1);
      pProductReferenceSize[0] = 256;
      try {
        var err = faceSDK.id3FaceLicense_GetProductReference(pProductReference, pProductReferenceSize);
        if (err == FaceError.insufficientBuffer.value) {
          calloc.free(pProductReference);
          pProductReference = calloc.allocate(pProductReferenceSize.value);
          err = faceSDK.id3FaceLicense_GetProductReference(pProductReference, pProductReferenceSize);
          if (err != FaceError.success.value) {
            throw FaceException(err);
          }
        }
        final vProductReference = utf8.decode(Uint8List.fromList(pProductReference.cast<Uint8>().asTypedList(pProductReferenceSize.value)));
        return vProductReference;
      } finally {
        calloc.free(pProductReference);
        calloc.free(pProductReferenceSize);
      }
    }