Interface IPreload
[Experimental("BIDICDP001")]
public interface IPreload
Properties
PrefetchStatusUpdated
Fired when a prefetch attempt is updated.
IEventSource<PrefetchStatusUpdatedEventArgs> PrefetchStatusUpdated { get; }
Property Value
- IEventSource<PrefetchStatusUpdatedEventArgs>
Remarks
Event args (PrefetchStatusUpdatedEventArgs):
- Key
- PipelineId
- InitiatingFrameId - The frame id of the frame initiating prefetch.
- PrefetchUrl
- Status
- PrefetchStatus
- RequestId
PreloadEnabledStateUpdated
Fired when a preload enabled state is updated.
IEventSource<PreloadEnabledStateUpdatedEventArgs> PreloadEnabledStateUpdated { get; }
Property Value
- IEventSource<PreloadEnabledStateUpdatedEventArgs>
Remarks
Event args (PreloadEnabledStateUpdatedEventArgs):
- DisabledByPreference
- DisabledByDataSaver
- DisabledByBatterySaver
- DisabledByHoldbackPrefetchSpeculationRules
- DisabledByHoldbackPrerenderSpeculationRules
PreloadingAttemptSourcesUpdated
Send a list of sources for all preloading attempts in a document.
IEventSource<PreloadingAttemptSourcesUpdatedEventArgs> PreloadingAttemptSourcesUpdated { get; }
Property Value
- IEventSource<PreloadingAttemptSourcesUpdatedEventArgs>
Remarks
Event args (PreloadingAttemptSourcesUpdatedEventArgs):
- LoaderId
- PreloadingAttemptSources
PrerenderStatusUpdated
Fired when a prerender attempt is updated.
IEventSource<PrerenderStatusUpdatedEventArgs> PrerenderStatusUpdated { get; }
Property Value
- IEventSource<PrerenderStatusUpdatedEventArgs>
Remarks
Event args (PrerenderStatusUpdatedEventArgs):
- Key
- PipelineId
- Status
- PrerenderStatus
- DisallowedMojoInterface - This is used to give users more information about the name of Mojo interface that is incompatible with prerender and has caused the cancellation of the attempt.
- MismatchedHeaders
RuleSetRemoved
IEventSource<RuleSetRemovedEventArgs> RuleSetRemoved { get; }
Property Value
- IEventSource<RuleSetRemovedEventArgs>
Remarks
Event args (RuleSetRemovedEventArgs):
- Id
RuleSetUpdated
Upsert. Currently, it is only emitted when a rule set added.
IEventSource<RuleSetUpdatedEventArgs> RuleSetUpdated { get; }
Property Value
- IEventSource<RuleSetUpdatedEventArgs>
Remarks
Event args (RuleSetUpdatedEventArgs):
- RuleSet
Methods
DisableAsync(string?, CancellationToken)
Task<DisableResult> DisableAsync(string? session = null, CancellationToken cancellationToken = default)
Parameters
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DisableResult>
A task representing the asynchronous operation, containing a DisableResult.
EnableAsync(string?, CancellationToken)
Task<EnableResult> EnableAsync(string? session = null, CancellationToken cancellationToken = default)
Parameters
sessionstringOptional CDP session override.
cancellationTokenCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<EnableResult>
A task representing the asynchronous operation, containing a EnableResult.