Searched refs:prefetch (Results 1 – 11 of 11) sorted by relevance
30 prefetch: () => {},100 this.prefetch(this.fetchedRegistry.getItemsToFetch());196 this.prefetch(this.fetchedRegistry.getItemsToFetch());218 this.prefetch(this.fetchedRegistry.getItemsToFetch());224 private prefetch(toPrefetch: ReadonlySet<number>): void {243 const prefetchResponse = this.dataSource!.prefetch(itemIndex);272 this.prefetch(this.fetchedRegistry.getItemsToFetch());282 this.prefetch(this.fetchedRegistry.getItemsToFetch());
46 this.dataSource?.prefetch(minVisible);76 this.dataSource?.prefetch(minVisible);142 ### prefetch subsection143 prefetch(index: number): Promise\<void\> | void;172 列表内容移出屏幕时(比如列表快速滑动场景下),预取算法判断屏幕以外的Item可以被取消预取时,该方法即会被调用。例如,如果HTTP框架支持请求取消,则可以在此处取消在prefetch中发起的网络请求。253 async prefetch(index: number): Promise<void> {
46 this.dataSource?.prefetch(minVisible);76 this.dataSource?.prefetch(minVisible);82 …to prefetch based on real-time changes in the visible area on the screen and variations in the pre…142 ### prefetch subsection164 …work supports request cancellation, network requests initiated in the **prefetch** API can be canc…243 async prefetch(index: number): Promise<void> {
80 实现DataSourcePrefetching类,继承IDataSourcePrefetching接口,并实现prefetch方法,如下代码所示:102 async prefetch(index: number): Promise<void> {172 // 列表滚动触发visibleAreaChanged,实时更新预取范围,触发调用prefetch接口
728 prefetch: () => { }, property in dummyDataSource756 const prefetchResponse = this.dataSource.prefetch(itemIndex);811 this.prefetch(this.fetchedRegistry.getItemsToFetch());895 this.prefetch(this.fetchedRegistry.getItemsToFetch());913 this.prefetch(this.fetchedRegistry.getItemsToFetch());917 prefetch(toPrefetch) {935 this.prefetch(this.fetchedRegistry.getItemsToFetch());944 this.prefetch(this.fetchedRegistry.getItemsToFetch());
18 prefetch(index: number): Promise<void> | void;
12 excType: prefetch abort73 excType: prefetch abort
9 excType: prefetch abort68 excType: prefetch abort
93 You can prefetch POST requests in the page that is about to be loaded using the [prefetchResource()…95 …The following is an example: In the **onAppear** event of the **Web** component, prefetch the POST…110 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.128 …e()](../reference/apis-arkweb/js-apis-webview.md#prefetchresource12) to prefetch the POST request …145 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.159 …e()](../reference/apis-arkweb/js-apis-webview.md#prefetchresource12) to prefetch the POST request …172 … Replace https://www.example1.com/post?e=f&g=h with the actual URL of the POST request to prefetch.
940 | PREFETCH | Explicit prefetch request. |
5167 …d are supported. A maximum of six POST requests can be pre-obtained. To prefetch the seventh post …5252 // Clear the prefetch cache that is no longer used.16035 | PREFETCH | 11 | Explicit prefetch request.|