maps-sdk package
Classes
|
Class |
Description |
|---|---|
|
Rendering settings for turn instruction images in navigation instructions. Configures the visual appearance of turn arrow images representing turn maneuvers in navigation. Allows customization of inner and outer colors for both active (recommended) and inactive (alternative) turns. Active colors highlight the recommended turn direction, while inactive colors show non-recommended alternatives. All color properties default to optimal values if not specified. | |
|
Class used for customizable turn images | |
|
Acceleration sensor data in three-dimensional space. Measures linear movement of the device along the X, Y, and Z axes. Useful for detecting motion, steps, or sudden changes in speed. Sensor Data Source | |
|
Represents details about a product activation stored on the device. Contains status, expiry and identifying information for an activation entry. Instances are typically returned by ActivationService.getActivationsForProduct. Activation | |
|
Represents metadata for a recorded activity. Contains short and long descriptions, the sport type, perceived effort level, an optional bicycle profile for cycling or e-bike activities, and visibility settings that control who can view the activity. Attach an ActivityRecord to a recording (for example via Recorder.activityRecord) to store user-provided metadata about the session. The ActivityRecord is not detected automatically; it must be explicitly set by the user. | |
|
Address info class Places | |
|
Alarm listener interface. Routes & Navigation | |
|
Alarm monitored area consisting of a GeographicArea and an id. Routes & Navigation | |
|
Provides monitoring and notification for navigation-related alarm events. The AlarmService manages a variety of alarm types including speed limit violations, landmark proximity alerts, overlay item notifications (such as safety cameras and social reports), geographic boundary crossings, tunnel entry/exit events, and day/night mode transitions. Configure the service with an AlarmListener to receive callbacks for these events. Multiple AlarmService and AlarmListener instances can operate simultaneously, enabling concurrent monitoring of different events or areas. Make sure to keep a reference to both the AlarmService and AlarmListener instances for as long as you want to receive alarm notifications. If either instance is garbage collected, alarm callbacks will stop being triggered. Routes & Navigation | |
|
Device orientation attitude data in 3D space. Describes the device's orientation expressed as Euler angles (roll, pitch, yaw) along with optional noise variance measurements. Sensor Data Source | |
|
Configuration for auto update Core | |
|
Battery status information sensor data. Provides comprehensive battery information including charge level, state, health, voltage, temperature, and power connection status. Sensor Data Source | |
|
Bike and electric bike routing profile. Container used to select a standard bike profile or an electric-bike profile for routing. The field selects the general cycling behaviour (city, road, etc.) while holds optional electric-specific parameters. Routing | |
|
BNGProjection class Projections | |
|
Preferences regarding building terrain profile. These preferences influence whether terrain profile data is calculated. Terrain profile data includes elevation changes along the route, which can be useful for activities like biking or hiking. These settings are required for the to be populated in the route response. Routing | |
|
Camera frame sensor data. Provides camera frame data, including configuration metadata and raw/processed image buffers. Typically used for computer vision or video recording features. Sensor Data Source | |
|
Car routing profile. Profile used for car routing. Extends MotorVehicleProfile and exposes parameters relevant when computing car routes. Routing | |
|
CircleGeographicArea object. | |
|
Climb section | |
|
Color representation in RGBA format | |
|
Compass sensor data providing directional heading. Gives the device's heading relative to magnetic or true north using magnetometer data. Sensor Data Source | |
|
Weather conditions for a specific timestamp. Contains weather information including type, description, parameters, and visual representation for a particular moment in time. Get a list of Conditions via LocationForecast.forecast. Weather | |
|
Contact info class A ContactInfo can have multiple values of the same ContactInfoFieldType. Changes made to this object will not be automatically reflected in associated Landmark. Use the Landmark.contactInfo setter to set the contact info for a landmark. | |
|
A single downloadable content product managed by the ContentStore. This class models one content product (for example: a map/region, style, or voice pack). Do not construct instances directly; obtain items from the public ContentStore API. The object exposes identification and localized display text, content type and language, size and downloaded-size metrics, availability/status and progress indicators, preview imagery, additional content-specific parameters and update metadata (version and update size). Use this object to start/pause/cancel downloads, query state, access previews and delete local content. Content | |
|
Provides functionality to update content in the GEM SDK content store. This class should not be instantiated directly. Instead, use ContentStore.createContentUpdater() to obtain an instance. An object used for applying updates to downloaded content packages. It represents a single update session (created by the ContentStore) and is used to start or resume an update, report progress and status changes, and complete the update flow. Content | |
|
Coordinates class | |
|
Compact country metadata including display name, ISO code and flag. This value object is returned by several MapDetails helpers (for example, MapDetails.getCountryData and MapDetails.allCountriesData) and can be used by clients to display country information or retrieve flag images. | |
|
SensorDataSource Through this interface data can be obtained from sensors, log files or any other means | |
|
A listener that receives data from a data source. Sensor Data Source | |
|
Departure heading Contains information about the direction the user is facing. Routing | |
|
The driver behaviour class. Provides methods for starting, stopping, managing and getting driver behaviour analysis. Driver Behaviour | |
|
A driver behaviour analysis. Provides methods for getting driver behaviour analysis data. This class should not be instantiated directly. Instead, use the methods provided by the DriverBehaviour class. Driver Behaviour | |
|
Driving scores. Provides information about driving scores. This class should not be instantiated directly. Instead, use the DriverBehaviourAnalysis.drivingScores getter to obtain a list of instances. Driver Behaviour | |
|
Electric bike profile containing e-bike configuration and rider/vehicle parameters. Holds electric bike specific routing parameters used by the routing engine to estimate energy consumption, apply legal constraints, and tune route generation for e-bike capabilities. Routing | |
|
Stores locations & access types for entrances to landmarks. This class should not be instantiated directly. Instead, use the Landmark.entrances getter to obtain an instance. | |
|
An electric vehicle car model used for EV route calculations. Contains vehicle specifications relevant to EV routing such as battery capacity, charging ports, range, efficiency, and fast charge capability. Routes & Navigation | |
|
A list of EVCarModel objects. Routes & Navigation | |
|
Event-driven implementation of ProgressListener for async operations. | |
|
Expired Content Core | |
|
ExternalInfo object Provides wikipedia information for a landmark. Places | |
|
External position data | |
|
Extra info class for landmark metadata. ExtraInfo is a flexible key/value store used by the SDK to attach auxiliary information to landmarks. It can contain fields used internally for contour boxes, geographic area metadata, or Wikipedia information. | |
|
Follow position preferences class | |
|
Gives more details about the status of a gate, such as the decision, the time until which the decision is valid, and a reason for the decision. Use GateKeeperService.getStatus to obtain the GateStatus for a specific gate. Activation | |
|
Animation helper class. | |
|
Controller for managing camera feed playback from a data source. Manages playback of camera frames from a DataSource by tracking the GemCameraPlayerStatus state. Automatically registers a DataSourceListener to receive new camera frames and update the playback status. Use with camera rendering components to display camera feed frames. The controller validates that the data source supports camera data and sets an error status if unavailable. It handles automatic state transitions between loading, playing, paused, and ended states based on incoming data and playback events. The controller must be disposed when no longer needed to clean up listeners and resources. Sensor Data Source | |
|
GemImage class representing an image with format and metadata | |
|
Core A parameter is a tuple ( key, value, name ).
| |
|
Gem Position Listener Sensor Data Source | |
|
Helper functions for GenericCategoriesId Core | |
|
GKProjection class Projections | |
|
Preferences for guided address search. Places | |
|
Class representing a guided address search service session. Places | |
|
Heart rate biometric sensor data. Represents heart rate readings in beats per minute, typically from a fitness or health sensor. Sensor Data Source | |
|
Class used for basic images Represents the image in an abstract way, providing metadata and access to the RenderableImg. | |
|
Helper functions for ISOCodeType Core | |
|
LAMProjection class Projections | |
|
Landmark class - core class for location information | |
|
Geographic coordinates referenced list of Landmark alarms. Routes & Navigation | |
|
Represents a session for browsing landmarks in a store. This class should not be instantiated directly. Instead, use the LandmarkStore.createLandmarkBrowseSession method to obtain an instance. Places | |
|
Used in specifying the settings of a LandmarkBrowseSession Core | |
|
Landmark category class | |
|
Landmark JSON class for serialization Landmark class ideally for setting large amount of landmarks data. eg. for List of Landmarks. | |
|
Landmark List class | |
|
Coordinate referenced Landmark object | |
|
Provides access to a landmark store and its operations. This class should not be instantiated directly. Instead, use the related methods from LandmarkStoreService to obtain an instance. It represents a single persistence store instance and is the primary entry point for reading, adding, updating and removing landmark data and categories, plus creating scoped browse sessions for iterative access. Typical tasks include enumerating and filtering landmarks (by category or geographic area), creating and modifying categories, importing external landmark datasets. Main members expose store identity and metadata, collections of category and landmark objects. Can be presented on the map using the LandmarkStoreCollection associated with a GemMapController, in for custom search operations and for alerts. Places | |
|
Landmark store collection class This class should not be instantiated directly. Instead, use the [MapViewPreferences.lmks] getter to obtain an instance. Places | |
|
Landmark store listener for receiving events about landmark store lifecycle changes. Places | |
|
Rendering settings for lane guidance images in navigation instructions. Configures the visual appearance of lane guidance images that show which lanes the driver should use for upcoming maneuvers. Controls the background color, active lane color (recommended lanes), and inactive lane color (lanes to avoid). All color properties default to optimal values: transparent background, white active lanes, and gray inactive lanes for clear visual distinction. | |
|
Class used for customizable lane images | |
|
Complete language specification. Core | |
|
Weather forecast for a specific geographic location. Contains the forecast update time, coordinates, and a list of conditions representing weather data for the location. Obtained via WeatherService methods. Weather | |
|
Configurable logger for the Magic Lane Maps SDK. Provides centralized logging with configurable levels, custom handlers, and optional timestamps. By default, only error messages are logged. | |
|
Provides metadata for a recorded sensor data log. The LogMetadata object exposes information extracted from a recorded log file such as start/end timestamps and positions, route coordinates, activity details, user-provided metadata, and basic metrics. The LogMetadata class provides information about the recorded log via the Recorder class. Do not construct this class directly; obtain an instance via RecorderBookmarks.getLogMetadata. | |
|
Provides metrics about a recorded log, such as distance, elevation gain, and average speed. These metrics are typically retrieved from a LogMetadata instance and represent summary information for a saved recording. | |
|
Uploads a recorded log file to Magic Lane servers for bug reports. LogUploader sends .gm or .mp4 recordings to Magic Lane backends and reports progress and status updates through the optional callback provided at construction. Use this class to programmatically upload logs for diagnostics or bug reporting. Sensor Data Source | |
|
Magnetic field sensor data. Reports raw magnetic field strength along three axes. Useful for environmental sensing or heading correction. Sensor Data Source | |
|
Map camera class. This class should not be instantiated directly. Instead, use the GemView.camera getter to obtain an instance. Controls the map view camera. It lets clients save and restore the camera state, read the current orientation and position, and set position or orientation either directly (quaternion/3D position) or via higher‑level camera transforms (absolute camera placement, target‑centered or target‑relative setups). It also provides helpers to compute a camera position and orientation for a given geographic target and heading/pitch/roll or distance parameters, returning a typed position+orientation result together with an operation status. Common uses are persisting/ restoring view state, programmatically placing the camera around a point or object, and generating camera matrices for custom actors or animations. Maps & 3D Scene | |
|
Service for downloading offline map tiles for one or more geographic areas. Use this service to initiate downloads of map tiles for offline viewing. Manage the downloaded map data and monitor transfer statistics. This service does not manage map data storage. Downloaded tiles cannot be used for search, navigation or routing. See the ContentStore for managing offline map data. Maps & 3D Scenes | |
|
A mapped driving event. Provides information about a driving event. This class should not be instantiated directly. Instead, use the DriverBehaviourAnalysis.drivingEvents getter to obtain a list of instances. Driver Behaviour | |
|
Maps scene object | |
|
Map View Extensions A compact set of view-scoped helpers that extend the native map view with lightweight, platform-proxied utilities for view tuning and small integrations. Exposes convenience features for performance and interaction tuning as well as integrations with sensing/positioning subsystems. Common tasks are enforcing zoom limits and toggling performance optimizations for lower-end devices, switching reduced-rate navigation updates, enabling or disabling enhanced position-tracking visualizations (optionally driven by a specific data source and rendering settings), and querying the current tracked positions or tracking state. Maps & 3D Scene | |
|
OverlayCollection for a MapView object. | |
|
Collection of paths for a map view. This class should not be instantiated directly. Instead, use the MapViewPreferences.paths getter to obtain an instance. Core | |
|
Mapview preferences | |
|
Information produced when the map view finishes a render pass. Provides the data and camera transition statuses, the geographic area visible in the view (as a polygon), and lists of marker and source IDs that were rendered. Prefer for accurate area calculations when the map is rotated. | |
|
Marker A compact map model representing a visual geometry (icon, point, polyline or polygon) placed at geographic coordinates for annotations, waypoints or temporary content. Common operations include creating, managing their geometric parts and coordinates (adding, updating and removing points or parts), querying the enclosing bounds and coordinate lists for layout or hit‑testing, reading and setting basic metadata such as title and identifier. Can be added to a MarkerCollection and displayed on the map using the MapViewMarkerCollections object associated with a GemMapController. The appearance is highly customizable using the MarkerRenderSettings and MarkerCollectionRenderSettings class. | |
|
Marker collection class Holds markers of a single visual style and geometry class for a map view. Common tasks are creating a collection for a specific marker kind and adding or removing markers, looking up markers by position or identifier, iterating or counting entries, querying the collection's geographic extent for layout or hit‑testing, grouping and retrieving related components. Can be presented on a map via the MapViewMarkerCollections object associated with a GemMapController. Also see MarkerSketches for a specialized marker collection with per-marker render settings. | |
|
MGRSProjection class Projections | |
|
Motor vehicle profile. Base class for motorized vehicle profiles such as CarProfile and TruckProfile. Provides common routing parameters used by the routing engine (mass, maximum speed and fuel type). Routing | |
|
Device mounting information sensor data. Describes how the device is physically mounted or oriented within a fixed system, such as in a vehicle. Sensor Data Source | |
|
NMEA sentence data from GNSS receivers. Raw navigation data in NMEA sentence format, typically from GNSS receivers for high-precision tracking. Only available on Android devices. Sensor Data Source | |
|
OffBoard Listener Core | |
|
Device orientation sensor data. Combines multiple sensors (like accelerometer and magnetometer) to determine the absolute device orientation including screen rotation and face direction. Sensor Data Source | |
|
Overlay category Maps & 3D Scene | |
|
Overlay info class This class should not be instantiated directly. Maps & 3D Scene | |
|
Overlay Item class This class should not be instantiated directly. Maps & 3D Scene | |
|
Geographic coordinates referenced list of OverlayItem alarms. Routes & Navigation | |
|
Overlay Item Position class This class should not be instantiated directly. Maps & 3D Scene | |
|
Mutable Overlay Collection class This class should not be instantiated directly. Maps & 3D Scene | |
|
A pair consisting of 2 objects | |
|
Weather parameter data. Contains weather-related measurements such as temperature, humidity, wind speed, etc. Provided by Conditions.params to represent specific weather attributes. Weather | |
|
Parameter List class | |
|
Represents a path object. Core | |
|
Represents a path match result from hit testing. Core | |
|
Represents the operations that can be performed on a DataSource which has playback capabilities | |
|
A point in 3d space, consisting of x, y and z coordinates. | |
|
A point in 4d space, consisting of x, y, z and w coordinates. | |
|
PolygonGeographicArea object. | |
|
The position and orientation of an object in 3D space. Core | |
|
Configuration class for position sensor | |
|
Position service class | |
|
Predefined custom landmark extra info keys | |
|
Projection interface which deals with all types of projections. Projections | |
|
Public transport agency information. Holds identifying metadata for a transit agency: numeric id, display name and an optional website URL. Is provided as part of PTStopInfo.agencies. Maps & 3D Scene | |
|
Public transport buy ticket information class Routes & Navigation | |
|
Public transport route class Routes & Navigation | |
|
Public-facing route information for a stop. Contains rider-visible route metadata such as short/long names, route type and color hints. Use this when presenting routes associated with a stop in UI or lists. Instances are provided as part of PTStop.routes or PTTrip.route. Maps & 3D Scene | |
|
Public transport route instruction class Routes & Navigation | |
|
Public transport stop metadata. Represents a stop (or platform/entrance) with an id, display name and the set of routes that serve it. Instances are produced as part of PTStopInfo.stops. Maps & 3D Scene | |
|
Aggregated public transport data for a selected overlay item. Instances are produced by OverlayItem.getPTStopInfo() and contain the agencies, stops and trips associated with the selected public transport overlay item. Use the filtering helpers to query trips by short name, type or agency. | |
|
Stop-time information for a single stop within a trip. Contains local-time departure, delay and realtime availability flags. NOTE: departure times are returned as Date objects with UTC flag but encoded as local time; convert using TimezoneService when needed. Maps & 3D Scene | |
|
A scheduled public transport trip instance. Represents a single scheduled run of a route with times, delays, cancellation and accessibility metadata. Maps & 3D Scene | |
|
Recorder for capturing sensor and multimedia logs. Use a configured RecorderConfiguration to create a Recorder with Recorder.create(). The recorder manages recording lifecycle (start, stop, pause, resume), audio/video capture and user metadata. See recorder guides for background permissions and storage recommendations. The recorded logs can be accessed and managed using RecorderBookmarks and their metadata through LogMetadata. Sensor Data Source | |
|
Provides access to recorded logs and their metadata on the device. RecorderBookmarks lets you list, inspect, export, import and manage recorded Do not instantiate directly; use to obtain an instance bound to a specific folder. | |
|
Configuration used to control recorder behavior and log storage settings. Use this object to specify which data types to record, where logs are stored, chunking and retention policies, video quality and audio options, and device-specific hardware metadata. Construct a RecorderConfiguration and pass it to Recorder.create() or Recorder.setRecorderConfiguration() to apply the settings. Sensor Data Source | |
|
Performance metrics produced while a recording is active. RecordMetrics is exposed by the Recorder while it is in RecorderStatus.recording. The values reset at the start of each recording session and provide realtime measurements that can be used in UI or analytics. | |
|
RectangleGeographicArea object. | |
|
A generic type consisting of x, y, width and height coordinates. | |
|
Represents a renderable image with its dimensions and binary data | |
|
Road info image render settings. Initialized with default optimal values | |
|
Class used for road info images | |
|
Road type sections Sections list is in route begin -> end walk orders | |
|
Gyroscope rotation rate sensor data. Measures the rate of rotation around the device's axes. Used to detect turns and angular movement. Sensor Data Source | |
|
Round trip parameters Routing | |
|
Manages a persistent collection of saved routes (bookmarks). Provides operations to create, add, import, update, remove and export saved routes. Use RouteBookmarks.create to open or create a named bookmarks collection backed by a file. | |
|
Listener for events related to a route | |
|
Comprehensive route calculation configuration for customizing routing behavior. RoutePreferences centralizes all route calculation options including transport mode, vehicle profiles, avoidance settings (motorways, tolls, ferries, unpaved roads), traffic handling, algorithm selection, result detail levels, and alternative route handling. Set preferences before calling RoutingService.calculateRoute() to control how routes are computed. Each transport mode supports specific profile configurations: - for cars, including fuel type and vehicle mass - for trucks, with dimensions and axle load constraints - for bicycles, supporting both standard and electric bikes - for walking or wheelchair-accessible routes Common preferences include (fastest, shortest, economic), , , , , and strategies. Public transport options include departure/arrival times via and , transfer constraints, and sorting strategies. Emergency vehicle mode relaxes routing constraints. Routing | |
|
Route terrain profile This class should not be instantiated directly. Instead, use the RouteBase.terrainProfile getter to obtain an instance. Note that the RoutePreferences.buildTerrainProfile setting should be configured correctly when calling the RoutingService.calculateRoute method for the RouteBase.terrainProfile getter to return a valid object. | |
|
Route traffic events class | |
|
Searchable parameters list. Container for different types of values. | |
|
Search preferences Places | |
|
Sense data factory | |
|
Sensor configuration base class | |
|
Rendering settings for signpost images in navigation instructions. Configures the visual appearance of signpost images that display upcoming exit information and destination names on highways and major roads. Controls border styling, corner rounding, and the maximum number of destination rows displayed. All properties default to optimal values: 10px border, rounded corners enabled, and maximum 3 rows of details. | |
|
Class used for customizable signpost images | |
|
Listens for updates to social report overlay items and delivers update events. Notifies about changes to social report overlay items such as new comments, thumb (upvote/downvote) actions, or other detail changes. Use this listener to receive the updated OverlayItem whenever the social overlay emits an update for a specific report. Typical usage: Obtain and register instances via SocialOverlay.registerReportListener. Overlays | |
|
Social Reports Overlay Info Provides access to social report category hierarchy and metadata. Maps & 3D Scene | |
|
Represents a time interval in a recording where sound was captured. A SoundMark identifies the start and end offsets (in milliseconds) of a section of a log that contains recorded audio and the geographic Coordinates associated with that interval. Soundmarks are generated automatically during audio recording sessions. Play the | |
|
Listener for events related to sound playback and text-to-speech. Register callbacks on this listener to be notified when a sound starts, stops or when system audio interruptions occur. Only a single sound event can be played by the SDK at a time; use the getters soundPlayType, soundPlayContent and soundPlayFileName to inspect details about the currently playing item. | |
|
Preferences controlling how the SDK plays sounds and TTS. Use this object to configure per-severity sound settings (volume, maximum playback time, audio stream type and focus delay). Modifications to an instance of this class are not applied automatically. To apply changes, call SoundPlayingService.setSoundPlayingPreferences. | |
|
Preferences used when requesting an audio session from the platform. This object controls how the SDK requests audio focus (category, preferred output, delay before granting focus and exclusivity). Modifications to an instance of this class are not applied automatically. To apply changes, call SoundPlayingService.soundSessionRequestPreferences. | |
|
Steep sections Sections list is in route begin -> end walk order. | |
|
Surface sections Sections list is in route begin -> end walk order. | |
|
Temperature sensor data. Provides temperature readings, either ambient or internal device temperature, along with a severity level indicator. Sensor Data Source | |
|
Represents a textual annotation at a specific moment in a recording. A TextMark stores an offset timestamp, geographic Coordinates, and a textual Text marks are added by calling the Recorder.addTextMark method while recording. | |
|
TilesCollectionGeographicArea object. | |
|
Time distance representation based on meters and seconds. | |
|
Timestamp & distance & coordinates structure | |
|
Result which contains all information about a timezone This class should not be instantiated directly. Instead, use the related methods from TimezoneService to obtain an instance. Core | |
|
Timezone Service class Provides information about timezones. Core | |
|
Traffic events class | |
|
Provides additional, read-only parameters that describe a traffic event. Typical information includes estimated speed impact, expected delay, severity level, and a short descriptive label or reason for the event. Obtain an instance via TrafficEvent.getPreviewData(). The method may return null when no preview data is available for a given event. | |
|
Traffic Preferences This class should not be instantiated directly. Use the TrafficService.preferences getter to get an instance. | |
|
Traffic service. Adds support to update traffic information. | |
|
Truck routing profile. Profile used for truck/lorry routing that includes vehicle dimensions and axle/load constraints. These parameters are considered by the routing engine when calculating truck-compatible routes (bridges, height/weight limits, etc.). Make sure to specify accurate values for the truck dimensions as they are measured in centimetres. Routing | |
|
User roadblock path preview match info Used for TrafficService.getPersistentRoadblockPathPreview. | |
|
UTMProjection class Projections | |
|
Vehicle registration information. Base class that holds vehicle registration details used by routing and transport-related preferences. Subclasses such as MotorVehicleProfile and ElectricBikeProfile extend this to provide additional routing parameters. Routing | |
|
Define the content version with major and minor. | |
|
Voice information object. Provides metadata about a voice asset: its name, language and file location. Returned voices can be used with TTS and playback APIs. It is usually obtained via SdkSettings.voice after setting the desired voice using SdkSettings.setVoiceByPath or SdkSettings.setTTSVoiceByLanguage. | |
|
W3WProjection class Projections | |
|
WGS84Projection class Projections | |
|
A generic type consisting of x and y coordinates. |
Abstract Classes
|
Abstract Class |
Description |
|---|---|
|
Service for activating and managing product licenses for the Magic Lane SDK. Used in Magic Lane products. Provides methods to generate license keys, activate and deactivate products, complete online/offline activation flows, query activation state and list activations present on the device. Activation | |
|
Geographic coordinates referenced list of item alarms. Routes & Navigation | |
|
Content store object This behaves like a singleton, i.e. all instances are sharing behind the same API interface Content | |
|
Provides debugging utilities for memory monitoring, logging, and SDK configuration. The Debug class offers static methods for monitoring memory usage, controlling log output, configuring routing and navigation behavior, and retrieving SDK diagnostics. Key features include:
Settings | |
|
Predefined duration identifier constants (ISO 8601 period format). These constants represent common license duration values used when requesting or describing product durations. Activation | |
|
Service used to check the status of gates. Activation | |
|
Improved position class with map matching information | |
|
Abstract class representing a GemView. Implements EventHandler and IMapViewListener. Core | |
|
Generic categories class Core | |
|
Position listener interface. Sensor Data Source | |
|
Base class for images Represents the image in an abstract way, providing metadata and access to the RenderableImg. | |
|
ISO codes conversions class. Performs language & country conversions ISO2 to ISO3 / ISO3 to ISO2. Core | |
|
Landmark store service A static service providing high-level management for landmark store lifecycle and discovery. It is the central entry point for creating or registering stores, looking up existing stores, removing stores, enumerating all available stores and obtaining built-in store identifiers used by the map. Main capabilities include store creation/registration and lookup, retrieval of special-purpose store identifiers used by the SDK, enumeration of available stores. Common tasks are creating or importing a store, resolving a store to use for imports or queries, removing an unused store, listing store and adding/removing event listeners to react to store lifecycle changes. Places | |
|
Localization service to retrieve localized strings. This class provides methods to get localized strings based on string IDs. The returned strings are localized according to the current SdkSettings.language setting. The ids from LocalizationStringIds might be valuable for all API users. Localization Service | |
|
Utilities for querying map metadata, coverage and country information. The static MapDetails API provides read-only helpers to inspect local map coverage, obtain country names and flags, compute sunrise/sunset times, enumerate map providers, and fetch version/release information. | |
|
Navigation service class | |
|
Persistent roadblock listener | |
|
Well-known product identifier constants used by the activation API. Use these constants when calling activation methods to specify the product to activate or query. Activation | |
|
Projection service class Projections | |
|
Routing service class Routes & Navigation | |
|
Search service class Places | |
|
Base data class for sensor data | |
|
Static service for crowd-sourced social event reporting and interaction. Provides a complete system for creating, managing, and interacting with user-generated reports about real-time road conditions and incidents. Overlays | |
|
High-level static API for playing sounds and TTS through the SDK. This class exposes only static members and acts as a thin bridge to the native sound engine. Use SoundPlayingListener to observe playback lifecycle events, and SoundPlayingPreferences to configure per-severity playback settings. | |
|
A task handler is a reference to a task that is currently running or has been scheduled to run. It can be used to cancel the task. Core | |
|
Text-to-speech localization service to retrieve localized strings for voice synthesis. This class provides methods to get localized strings based on string IDs. The returned strings are localized according to the current SdkSettings.voice setting. These strings are intended for text-to-speech output and may differ from UI strings where a voice-specific variant exists. Localization Service | |
|
Service for retrieving weather forecasts and conditions. This service provides methods to fetch current weather conditions, hourly forecasts, daily forecasts, and general weather data for specified geographic locations. Weather |
Enumerations
|
Enumeration |
Description |
|---|---|
|
The various states an activation can be in on the device. Use ActivationInfo.status to obtain the current state of an activation. These states reflect different lifecycle stages of a product activation on the device and with the remote activation service. | |
|
Activity confidence levels | |
|
User activity types | |
|
Defines visibility settings for an activity. Does not control sharing; activities are local only. For use by applications to manage who can view the activity. | |
|
Address level of detail. Places | |
|
Address field enumeration Places | |
|
Alert severity levels used for sound-related settings. Severity controls which preferences apply when playing alerts. | |
|
The anchor type. The anchor is a point (all intersections), a circle (roundabout, complex traffic figure) or a waypoint. Routes & Navigation | |
|
The type of animation. | |
|
The arrow direction of the shape. The arrow direction will be only valid for and some combined turns. Routes & Navigation | |
|
The arrow type of the shape. The arrow is either attached to the anchor side (begin), or the opposite side (end). Routes & Navigation | |
|
Audio category type used when requesting an audio session. | |
|
Audio output type. The audio output for sound playback. | |
|
Audio stream type used for playback. Select which platform audio stream category should be used when requesting audio focus. | |
|
Battery health status | |
|
Battery states | |
|
Bike profile selection used for bicycle routing. Influences route generation to prefer roads/paths suitable for the chosen cycling style. Routing | |
|
Buildings visibility modes | |
|
Overlay Ids enumeration Maps & 3D Scene | |
|
Compass accuracy levels | |
|
Contact info field type | |
|
Enumerates the priority levels for content download threads. Specifies hints for the download thread scheduling priority. Content | |
|
Enumerates possible states for a ContentStoreItem in the context of a download operation. Content | |
|
Downloadable content types managed by the Magic Lane SDK. The ContentType enum lists kinds of downloadable content that the SDK can manage (map regions, style packages, voice packs, etc.). Not all enum values are fully supported yet; consult upstream documentation when in doubt and prefer the values marked as supported by this package. Content | |
|
Enumerates the possible statuses for a content updater operation. Content | |
|
Data interruption reason Sensor Data Source | |
|
Enumerates the data save policies for content downloads. Specifies where downloaded content data should be stored on the device. Content | |
|
The data source type. Sensor Data Source | |
|
Known sense data types | |
|
Represents the state of daylight conditions. Weather | |
|
The drive side of the abstract geometry. The drive side allows to render the correct U-Turn shape. Routes & Navigation | |
|
Describes various driving-related events. Driver Behaviour | |
|
Represents the effort level for an activity. | |
|
Electric bike drivetrain type. Enumerates supported e-bike drivetrain classifications used in ElectricBikeProfile. Routing | |
|
Miscellaneous icons | |
|
Type of an entrance location | |
|
Electric vehicle charging connector type Not yet supported by the routing engine. Routing | |
|
Device face types | |
|
Values that represent file sorting orders. Sensor Data Source | |
|
Values that represent file sorting types. Sensor Data Source | |
|
Path import supported formats Sensor Data Source | |
|
Follow position map rotation mode | |
|
Follow position state. Used in IMapViewListener.onFollowPositionState and IMapViewListener.onTouchHandlerModifyFollowPosition Maps & 3D Scene | |
|
Fuel type for motorized vehicles. Enumerates engine fuel types used by vehicle profiles. Routing | |
|
Gate enumeration representing different gates that can be checked. Gates represent different functional areas or features of the SDK that can be enabled or disabled based on license status. Use with GateKeeperService to check whether specific features are available. | |
|
GateKeeperService decisions describing the kind of states a GateStatus can be in. These values represent the decision outcome when checking whether access to a feature (gate) is allowed based on license status and activation state. | |
|
Playback status for a camera player. Describes the current state of camera playback, indicating whether the player is loading, playing, paused, ended, or in an error state. Sensor Data Source | |
|
Logging levels for SDK debug output to console. Controls the verbosity of log messages displayed in the console during development. Higher levels produce more detailed logging. Settings | |
|
Verbosity levels for crash report logs sent to Magic Lane servers. These levels control how much detail is included in logs automatically sent to Magic Lane in case of crashes. Lower levels minimize log traffic. Higher levels provide detailed diagnostics but are only available in debug SDK builds. Settings | |
|
Enum representing various error states in the Gem system | |
|
SDK icons | |
|
Generic categories Core | |
|
Types of geographic areas | |
|
Climb grade - UCI based, see https://bicycles.stackexchange.com/questions/1210/how-are-the-categories-for-climbs-decided Categories are sorted in descending order by difficulty ( GradeHC - most difficult, Grade4 - less difficult ) | |
|
Enum for easily accessible hardware information on Android and iOS Sensor Data Source | |
|
The hemisphere type Projections | |
|
Enumerates known image file formats. | |
|
Image pixel encoding formats. Defines various pixel formats used by camera sensors for encoding frame data. | |
|
Default transport mode for improved position | |
|
ISO code variants. Core | |
|
Landmark import supported formats Places | |
|
Ways in which Landmarks from a LandmarkBrowseSession can be ordered Core | |
|
Landmark store types Places | |
|
Predefined image ids for SDK layout assets. Core | |
|
State of a log upload operation. Describes the lifecycle states a log upload can be in while being transferred to the server. Sensor Data Source | |
|
MapCoverage indicates the availability of map data for a region. Use this enum to understand whether map tiles are available offline, available via cached tiles, only available online on the server, or unknown. | |
|
Map details quality levels | |
|
Extended capabilities that may be available in a particular map dataset. Each enum value represents an optional feature or behaviour flag that map data may provide. Use MapDetails.getMapExtendedCapabilities to obtain the set of capabilities available for the current map. | |
|
Identifiers for map data providers supported by the SDK. Use these values when calling provider-specific APIs such as MapDetails.getProviderName or MapDetails.getProviderSentence. The numeric ids returned by MapDetails.getMapProviderIds correspond to these enum values. | |
|
Worldwide road map support status Core | |
|
Perspectives in which the map is viewed | |
|
Navigation instruction event types | |
|
Navigation instruction update events | |
|
Modifies navigation behavior for debugging and testing purposes. These modifiers alter navigation behavior to simulate specific conditions or enable certain strategies. Used primarily for testing and debugging navigation features. Settings | |
|
Represents online restrictions using bitwise flags. Core | |
|
UI orientation types | |
|
Data origin. Sensor Data Source | |
|
Supported formats for path import. Core | |
|
Pedestrian profile Used to specify the type of pedestrian for route calculation. Determines the pedestrian characteristics and routing preferences. Routing | |
|
Represents the playing status of a data source. Sensor Data Source | |
|
Plugged types | |
|
The position accuracy | |
|
The position activity | |
|
Position quality enum Core | |
|
The map projection type Projections | |
|
Position provider | |
|
Algorithm type Used to specify whether the provided timestamp is for departure or arrival. Only used for public transport routing. Routing | |
|
Enumeration of public transport route types. Mirrors common route categories (bus, tram, rail, etc.) used in GTFS-like data models. Maps & 3D Scene | |
|
Sorting strategy Used to specify the preferred sorting strategy for public transport routes. Only used for public transport routing. Routing | |
|
Predefined image ids for public transport assets. Core | |
|
Range type to define ranges in. Unit type to define ranges in. Currently only used for the roundtrips feature, not the ranges (aka isochrones) feature. Routing | |
|
Error reason type Core | |
|
Enumerates different states of a recorder. Sensor Data Source | |
|
Enumeration representing different modes of transportation. Used in recording configurations to specify the transport mode. It is different from navigation transport modes. Sensor Data Source | |
|
Video resolution options for camera recording. Sensor Data Source | |
|
The restriction type of the shape. The restriction type can be used to visualize the restriction for the connected street. Routes & Navigation | |
|
Current position road modifiers. Sensor Data Source | |
|
Get road type | |
|
Alternative routes scheme Routing | |
|
Sort order options for RouteBookmarks. | |
|
Route display modes | |
|
Path calculation algorithm Used to specify the path calculation algorithm for route calculation. Routing | |
|
Path calculation flavors Used to specify the path calculation flavor for route calculation. Routing | |
|
Predefined image ids for route preview bubble assets. Core | |
|
Routing result details Used to specify the level of detail in the routing result. Routing | |
|
Route result Used to specify the type of route result to be returned. Determines whether a navigable path or a reachable area is computed. Routing | |
|
Transport mode Used to specify the primary transport mode for route calculation. Determines the vehicle or movement type used for routing. Routing | |
|
Route type Used to specify the type of route to be calculated. Influences the optimization criteria for the route calculation. Routing | |
|
Route type preference Only relevant for public transport routing. Used to specify the preferred type of public transport for route calculation. Routing | |
|
File format of the scene object | |
|
Script variants Core | |
|
Enumerates the possible capabilities for the SDK. Core | |
|
Service group enum, including map tiles, traffic, terrain. Core | |
|
The type of the shape. Use the type to render the shape in different width and color. Routes & Navigation | |
|
The type of the shape. Use the type to render the shape in different width and color. Routes & Navigation | |
|
Specifies the type of media the sound engine is currently playing. Provides the currently active media type used by the SDK sound engine. Use SoundPlayingListener.soundPlayType to read the current value. | |
|
Sport type enumeration. Represents various sports activities, categorized by their nature | |
|
Get surface type | |
|
Temperature levels | |
|
Enumerates the type of response from the timezone plugin. Core | |
|
Touch gestures list | |
|
Traffic avoidance options Used to specify the level of traffic avoidance during route calculation. Determines which types of traffic events to avoid. Routing | |
|
Traffic events classes Routes & Navigation | |
|
Traffic event shape Routes & Navigation | |
|
Traffic event severity enum. Routes & Navigation | |
|
Restrictions which prevent online service functionality | |
|
Define how traffic service will be used Routes & Navigation | |
|
Navigation turn events Routes & Navigation | |
|
Unit of measurement for acceleration | |
|
Types of values. Core | |
|
The camera transition status during a render. Indicates whether the camera was stationary or moving while the view was produced. Moving states typically imply the render might be transitional. | |
|
The status of view data transitions for a render pass. Use this to determine whether the rendered content represents a final state or if the view is still waiting for additional online data. | |
|
Enumerates available voice types for TTS and voice playback. Distinguishes between human (recorded) and computer-generated (TTS) voices used in navigation instructions and other audio output. |
Interfaces
|
Interface |
Description |
|---|---|
|
Camera hardware and capture settings. Encapsulates camera parameters including field of view, resolution, frame rate, pixel format, focal lengths, exposure, and ISO settings. | |
|
Interface for receiving events from the SDK Core | |
|
Parameters for creating a GemPositionListener | |
|
This object represents a geographical area on the surface of a WGS 84 Ellipsoid. | |
|
Map view listener interface. Implement this interface to receive map view events such as touch, gestures, selection, and rendering updates. Maps & 3D Scene | |
|
Configuration options for the SDK logger. Core | |
|
Base interface for log marks, which can be either SoundMark or TextMark. Sensor Data Source | |
|
Base Metrics interface for metric objects used by the sense library. Used internally to represent metric containers returned from recorder and log metadata APIs. | |
|
Interface for implementing progress of async operations (routing, search) Core | |
|
Size interface representing width and height | |
|
Duration coordinates for weather forecasts with time offsets. Specifies a location and a future time offset for which weather forecast is requested. Weather |
Namespaces
|
Namespace |
Description |
|---|---|
|
ActivationStatus extension methods. | |
|
AlertSeverity extension methods | |
|
AudioCategory extension methods | |
|
AudioOutput extension methods | |
|
AudioStreamType extension methods | |
|
ContactInfoFieldType extension methods | |
|
Daylight extension methods. | |
|
EngineMisc extension methods | |
|
EntranceLocationType extension methods | |
|
Gate extension methods. | |
|
GateDecision extension methods. | |
|
GemConsoleLogLevel extension methods. | |
|
GemDumpSdkLevel extension methods. | |
|
GemIcon extension methods | |
|
GeographicAreaType extension methods | |
|
ImageFileFormat extension methods | |
|
MapCoverage extension methods | |
|
MapExtendedCapability extension methods | |
|
MapProviderId extension methods | |
|
NavigationModifiers extension methods. | |
|
Extension methods for PathFileFormat enum. | |
|
SoundPlayType extension methods | |
|
Core | |
|
Extension methods for ViewCameraTransitionStatus. | |
|
Extension methods for ViewDataTransitionStatus. | |
|
VoiceType extension methods. |
Variables
|
Variable |
Description |
|---|---|
|
Grouped predefined image ids. Core |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
Callback invoked when a hovered map label highlights a landmark. | |
|
Callback invoked when a hovered map label highlights an overlay item. | |
|
Callback invoked when a hovered map label highlights a traffic event. | |
|
Log levels for SDK logging. Levels are hierarchical: 'debug' includes all logs, 'none' disables all logs. Core | |
|
Union type for all predefined SDK image ids. Core | |
|
Callback invoked when the map style is set. | |
|
Callback invoked when the viewport is resized. |