Gio.FileReadMoreCallback

function onFileReadMoreCallback(file_contents: String, file_size: Number(gint64), callback_data: void): Boolean {
}
  

When loading the partial contents of a file with Gio.File.load_partial_contents_async, it may become necessary to determine if any more data from the file should be loaded. A Gio.FileReadMoreCallback function facilitates this by returning true if more data should be read, or false otherwise.

file_contents

the data as currently read.

file_size

the size of the data currently read.

callback_data

data passed to the callback.

Returns

true if more data should be read back. false otherwise.