# getUri method

String getUri()

Gets the the URI used to retrieve the external resource.

return The URI used to retrieve the external resource. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String getUri() {
      Pointer<Char> pUri = nullptr;
      Pointer<Int> pUriSize = calloc.allocate(1);
      pUriSize[0] = -1;
      try {
        var err = biosealSDK.id3BiosealResourceCallbackArgs_GetUri(_pHandle.value, pUri, pUriSize);
        if (err == BiosealError.insufficientBuffer.value) {
          pUri = calloc.allocate(pUriSize.value);
          err = biosealSDK.id3BiosealResourceCallbackArgs_GetUri(_pHandle.value, pUri, pUriSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vUri = utf8.decode(Uint8List.fromList(pUri.cast<Uint8>().asTypedList(pUriSize.value)));
        return vUri;
      } finally {
        calloc.free(pUri);
        calloc.free(pUriSize);
      }
    }