getCurrentChapterTitle method

String getCurrentChapterTitle()

Returns the title of the current chapter. Returns an empty string is the core is not initialised or the title is empty.

Implementation

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

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

    freeBufferString(str);

    return result;
  }

  return '';
}