TXFAHostTransaction.Create
Unit: HPDFXFAHost
Declaration
constructor Create(Transport: TXFAHostTransport;
Completed: TXFAHostTransactionCompleted;
const Limits: TXFAHostTransportLimits;
const Budget: IXFAStreamBranchBudget= nil);
class function CreateAdmitted(Transport: TXFAHostTransport;
Completed: TXFAHostTransactionCompleted;
const Limits: TXFAHostTransportLimits;
const Budget: IXFAStreamBranchBudget): TXFAHostTransaction; static;
Behaviour
Creates an empty transaction and checks that limits are positive; Transport may stay nil until a script actually asks for an external operation
Completed is an optional callback for the transaction outcome; the transaction keeps hold of the method references without owning their application object
Pass a Budget to charge the transaction instance and its entry list against a retained-memory family before either is allocated; CreateAdmitted states the same construction with a mandatory family, and a nil family in CreateAdmitted keeps the unmetered construction
Every charge is returned when the transaction is freed, including a transaction that is freed after a refusal or after its prefix read reserved scratch
Related APIs
Explicit XFA Host Transport, TXFAHostTransaction and Interactive Dynamic XFA Widget Runtime