GetRangeSourcePrefetchInfo
Document management, Progressive loading, Diagnostics
Description
Returns a JSON snapshot of a selected-document prefetch job
Syntax
Delphi
Function TPDFlib.GetRangeSourcePrefetchInfo(JobHandle: Integer;
Out Info: WideString): Integer;Parameters
| JobHandle | Handle returned by StartRangeSourcePrefetch for a job on the selected range-backed document |
|---|---|
| Info | Receives the JSON snapshot on success; set to an empty string when the handle is invalid |
Return values
Returns 1 and fills Info for a valid handle, otherwise returns zero and sets LastErrorCode to 401
JSON fields
state, stateCode | The textual and numeric lifecycle state |
|---|---|
dataKind, index, priority | The target and scheduling priority |
passes, plannedRanges | Dependency-discovery rounds and normalised range count |
sourceReads, fetchedBytes, maxBytes | Budgeted uncached source activity |
readAheadBytes | The configured forward extension |
availabilityStatus, availability | The most recent dependency result and embedded availability report |
error | An optional machine-readable terminal reason |