getFileMeta method

String getFileMeta(
  1. int type
)

Gets the metadata attribute of the book. Returns an emptry string, if the core is not initialised.

Implementation

String getFileMeta(int type) {
  Pointer<BufferString> str = (getFileMetaNative?.call(_sdk, type))!;

  String result = str.ref.toString();

  if (str != nullptr) {
    freeBufferString(str);

    return result;
  }

  return '';
}