BlazeCachingLevel - Android
Prefetching is used in the SDK to improve the user experience by loading content before it's needed. For Stories and Moments, the SDK offers various prefetching levels—Low, Default, High, and Extreme—allowing for customized content caching policies.
Each level determines how much content is preloaded, both initially and during playback, to ensure seamless access to stories or moments with minimal waiting times for the user. The following types of behaviors are available for your convenience when setting the SDK's content caching policy if you feel like default is not what you expect.
The following types of behaviors are available for your convenience when setting the SDK's content caching policy.
Stories
| Value | Description |
|---|---|
| LOW | While playing, pre-fetches the consequent page only. |
| DEFAULT | Initially, pre-fetches the first visible item's page after loading. While playing, pre-fetches two of the next pages of the currently playing story, the first two unread pages of the next story, and the first unread page of the second story in line. |
| HIGH | Initially, pre-fetches the first page of the first three items after loading. While playing, pre-fetches the next three pages of the currently playing story, and the first two unread pages of the second and third stories in line. |
| EXTREME | Initially, pre-fetches the first page of the first five items after loading. While playing, pre-fetches the next four pages of the currently playing story, the three, two, and one first unread pages of the following three stories in line, respectively. |
Moments
| Value | Description |
|---|---|
| LOW | While playing, pre-fetches the consequent moment. |
| DEFAULT | Initially, pre-fetches the first visible item's moment after loading. While playing, pre-fetches the three next moments. |
| HIGH | Initially, pre-fetches the first page of the first three items after loading. While playing, pre-fetches the four next moments. |
| EXTREME | Initially, pre-fetches the first page of the first five items after loading. While playing, pre-fetches the next five moments. |
Updated 22 days ago
Did this page help you?
