buildHtmlView method

void buildHtmlView(
  1. String? language,
  2. bool userAuthenticated
)

Builds the presentation view, in HTML format.

param language The expected language. param userAuthenticated A value indicating whether the user is authenticated. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

void buildHtmlView(String? language, bool userAuthenticated) {
  Pointer<Char>? pLanguage = language?.toNativeUtf8().cast<Char>();
  try {
    var err = biosealSDK.id3Bioseal_BuildHtmlView(_pHandle.value, pLanguage ?? nullptr, userAuthenticated);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
  } finally {
    if (pLanguage != null) {
      calloc.free(pLanguage);
    }
  }
}