getCurrentChapterIndex method

int getCurrentChapterIndex()

Returns the current chapter's index. Returns 0, if the core is not initialised yet. Returns -1, if the curretn chapter is not ready yet.

Implementation

int getCurrentChapterIndex() {
  int? value = getCurrentChapterIndexNative?.call(_sdk);

  return value!;
}