# setDecryptionCallback method

void setDecryptionCallback(

1. DecryptionCallbackHandler decryptionCallback

)

Sets the the callback used to decrypt a field.

param decryptionCallback The callback used to decrypt a field. param context The callback context. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    void setDecryptionCallback(DecryptionCallbackHandler decryptionCallback) {
      const except = -8003;
      _decryptionCallbackApp = decryptionCallback;
      var err = biosealSDK.id3Bioseal_SetDecryptionCallback(_pHandle.value, Pointer.fromFunction<DecryptionCallbackHandlerNative>(_decryptionCallbackStatic, except), _pHandle.value.cast());
      if (err != BiosealError.success.value) {
        throw BiosealException(err);
      }
    }