Content topic
Content
Use the content module to discover, download, manage, and update offline packages such as maps, view styles, and voice packs. This system helps you build reliable offline workflows for navigation, rendering, and voice guidance by exposing discovery, lifecycle, and update primitives for packaged content.
ContentStore: Use this central manager to discover available catalogs, inspect local availability, and orchestrate lifecycle actions like downloads and removals. It tracks overall content state and coordinates other content-related operations.ContentStoreItem: Use this model to represent a single downloadable product (map region, style package, or voice pack). Items carry identity, availability metadata, download status, and preview information that your app manipulates when presenting or managing offline content.ContentUpdater: Use this coordinator to perform and monitor updates for a specific content type. It handles update orchestration, progress reporting, readiness checks, and supports canceling or resuming update flows as needed.
These components work together to provide a robust content lifecycle: ContentStore discovers and exposes items, ContentStoreItem models the individual packages you act on, and ContentUpdater executes the actual update operations. Together they enable reliable offline experiences with clear progress, resumability, and consistent state management.
For typical usage, query ContentStore to list available items and inspect local availability via ContentStoreItem. When updates are required, use ContentUpdater to start and monitor operations, and prefer resumable flows and clear cancellation semantics for better user experience.
Learn more about content management: https://developer.magiclane.com/docs/flutter/guides/category/offline
Classes
- ContentParameters Content
- Base class for content parameters.
- ContentStore Content
- Access and manage downloadable content provided by the content store.
- ContentStoreItem Content
- A single downloadable content product managed by the ContentStore.
- ContentUpdater Content
- Manages and applies updates for downloaded content in the content store.
- RoadMapParameters Content
- Road map ContentStoreItem details. This class provides detailed information specific to road map content.
- StyleParameters Content
- Style ContentStoreItem details. This class provides detailed information specific to style content.
- VoiceParameters Content
- Voice ContentStoreItem details. This class provides detailed information specific to voice content.
Enums
- ContentDownloadThreadPriority Content
- Enumerates the priority levels for content download threads.
- ContentStoreItemStatus Content
- Enumerates possible states for a ContentStoreItem in the context of a download operation.
- ContentType Content
- Downloadable content types managed by the Magic Lane SDK.
- ContentUpdaterStatus Content
- Enumerates the possible statuses for a content updater operation.
- DataSavePolicy Content
- Enumerates the data save policies for content downloads.