1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2026-04-23 01:13:01 +02:00
Files
CEF4Delphi/docs/html/uCEFComponentUpdater.TCefComponentUpdaterRef.html
Salvador Díaz Fau 30d9edd993
Make / build (ubuntu-latest) (push) Has been cancelled
Update to CEF 146.0.10
2026-04-04 18:01:24 +02:00

129 lines
9.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>cef4delphi: uCEFComponentUpdater: Class TCefComponentUpdaterRef</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 1.0.4">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="bootstrap.min.css">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
<style type="text/css">
body { margin: 0.5em; }
.badge { padding: 0.1em 0.5em; color: white; }
</style></head>
<body>
<span id="TCefComponentUpdaterRef"></span><h1 class="cio">Class TCefComponentUpdaterRef</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uCEFComponentUpdater.html">uCEFComponentUpdater</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCefComponentUpdaterRef = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a>, <a class="normal" href="uCEFInterfaces.ICefComponentUpdater.html">ICefComponentUpdater</a>)</code></p>
<h2 class="description">Description</h2>
<p>
This structure provides access to Chromium's component updater service, allowing clients to discover registered components and trigger on-demand updates. The functions of this structure may only be called on the browser process UI thread. If the CEF context is not initialized or the component updater service is not available, functions will return safe defaults (0, nullptr, or NULL). </p>
<p>
<p>&lt;see href=&quot;<a href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_component_updater_capi.h">https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_component_updater_capi.h</a>&quot;&gt;CEF source file: /include/capi/cef_component_updater_capi.h (cef_component_updater_t))</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a></li>
<li class="thisitem">TCefComponentUpdaterRef</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>function <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#GetComponentCount">GetComponentCount</a></strong>: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>;</code></td>
</tr>
<tr class="list2 visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>function <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#GetComponents-TCefComponentArray-">GetComponents</a></strong>(var components_: <a href="uCEFInterfaces.html#TCefComponentArray">TCefComponentArray</a>): boolean;</code></td>
</tr>
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>function <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#GetComponentById-ustring-ICefComponent-">GetComponentById</a></strong>(const component_id: <a href="uCEFTypes.html#ustring">ustring</a>; var aResult: <a href="uCEFInterfaces.ICefComponent.html">ICefComponent</a>): boolean;</code></td>
</tr>
<tr class="list2 visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>procedure <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#Update-ustring-TCefComponentUpdatePriority-ICefComponentUpdateCallback-">Update</a></strong>(const component_id: <a href="uCEFTypes.html#ustring">ustring</a>; priority: <a href="uCEFTypes.html#TCefComponentUpdatePriority">TCefComponentUpdatePriority</a>; const callback: <a href="uCEFInterfaces.ICefComponentUpdateCallback.html">ICefComponentUpdateCallback</a>);</code></td>
</tr>
<tr class="list visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><code>class function <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#UnWrap-Pointer-">UnWrap</a></strong>(data: Pointer): <a href="uCEFInterfaces.ICefComponentUpdater.html">ICefComponentUpdater</a>;</code></td>
</tr>
<tr class="list2 visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><code>class function <strong><a href="uCEFComponentUpdater.TCefComponentUpdaterRef.html#New">New</a></strong>: <a href="uCEFInterfaces.ICefComponentUpdater.html">ICefComponentUpdater</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="GetComponentCount"></span><code>function <strong>GetComponentCount</strong>: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns the number of registered components, or 0 if the service is not available. </p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="GetComponents-TCefComponentArray-"></span><code>function <strong>GetComponents</strong>(var components_: <a href="uCEFInterfaces.html#TCefComponentArray">TCefComponentArray</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Populates |components_| with all registered components. Any existing contents will be cleared first. </p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="GetComponentById-ustring-ICefComponent-"></span><code>function <strong>GetComponentById</strong>(const component_id: <a href="uCEFTypes.html#ustring">ustring</a>; var aResult: <a href="uCEFInterfaces.ICefComponent.html">ICefComponent</a>): boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns the component with the specified |component_id|, or nullptr if not found or the service is not available. </p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="Update-ustring-TCefComponentUpdatePriority-ICefComponentUpdateCallback-"></span><code>procedure <strong>Update</strong>(const component_id: <a href="uCEFTypes.html#ustring">ustring</a>; priority: <a href="uCEFTypes.html#TCefComponentUpdatePriority">TCefComponentUpdatePriority</a>; const callback: <a href="uCEFInterfaces.ICefComponentUpdateCallback.html">ICefComponentUpdateCallback</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
<p>Triggers an on-demand update for the component with the specified |component_id|. |priority| specifies whether the update should be processed in the background or foreground. Use CEF_COMPONENT_UPDATE_PRIORITY_FOREGROUND for user-initiated updates.
<p>|callback| will be called asynchronously on the UI thread when the update operation completes. The callback is always executed, including when the component is already up-to-date (returns CEF_COMPONENT_UPDATE_ERROR_NONE), when the requested component doesn't exist, or when the service is unavailable (returns CEF_COMPONENT_UPDATE_ERROR_SERVICE_ERROR). The callback may be nullptr if no notification is needed.
<p></p>
</td></tr>
</table>
<table class="detail visibility-public wide_list">
<tr class="list visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><span id="UnWrap-Pointer-"></span><code>class function <strong>UnWrap</strong>(data: Pointer): <a href="uCEFInterfaces.ICefComponentUpdater.html">ICefComponentUpdater</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<table class="detail visibility-public wide_list">
<tr class="list visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><span id="New"></span><code>class function <strong>New</strong>: <a href="uCEFInterfaces.ICefComponentUpdater.html">ICefComponentUpdater</a>;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 1.0.4</a>. </em>
</span>
</body></html>