getDocumentLanguage method

String getDocumentLanguage()

Returns the language of the opened book. Returns an empty string is the core is not initialised or the title is empty.

Implementation

String getDocumentLanguage() {
  Pointer<BufferString> str = (getDocumentLanguageNative?.call(_sdk))!;

  if (str != nullptr) {
    String result = str.ref.toString();

    freeBufferString(str);

    return result;
  }

  return '';
}