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

JobHandleHandle returned by StartRangeSourcePrefetch for a job on the selected range-backed document
InfoReceives 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, stateCodeThe textual and numeric lifecycle state
dataKind, index, priorityThe target and scheduling priority
passes, plannedRangesDependency-discovery rounds and normalized range count
sourceReads, fetchedBytes, maxBytesBudgeted uncached source activity
readAheadBytesThe configured forward extension
availabilityStatus, availabilityThe most recent dependency result and embedded availability report
errorAn optional machine-readable terminal reason