# setExternalResourceCallback method

void setExternalResourceCallback(

1. ResourceCallbackHandler externalResourceCallback

)

Sets the the callback used to retrieve an external resource (LoTL, TSL, certificate, manifest, CRL) with specified URI.

param externalResourceCallback The callback used to retrieve an external resource (LoTL, TSL, certificate, manifest, CRL) with specified URI. param context The callback context. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    void setExternalResourceCallback(ResourceCallbackHandler externalResourceCallback) {
      const except = -8003;
      _externalResourceCallbackApp = externalResourceCallback;
      var err = biosealSDK.id3Bioseal_SetExternalResourceCallback(_pHandle.value, Pointer.fromFunction<ResourceCallbackHandlerNative>(_externalResourceCallbackStatic, except), _pHandle.value.cast());
      if (err != BiosealError.success.value) {
        throw BiosealException(err);
      }
    }