Map View
Build a MapView with Context and MapInitOptions objects.
Parameters
a visual context (Activity, WindowContext, or DisplayContext) used to initialise the default MapInitOptions. On API 30+, a non-visual context (e.g. applicationContext) disables VRR/refresh-rate monitoring and locks the map to 60 fps on high-refresh-rate displays.
the init options for map
Build a MapView with Context and AttributeSet objects.
Parameters
a visual context (Activity, WindowContext, or DisplayContext). On API 30+, a non-visual context (e.g. applicationContext) disables VRR/refresh-rate monitoring and locks the map to 60 fps on high-refresh-rate displays.
the attribute set to initialise the MapView with
Build a MapView with a Context object, a AttributeSet object, and an Int which represents a style resource file.
Parameters
a visual context (Activity, WindowContext, or DisplayContext). On API 30+, a non-visual context (e.g. applicationContext) disables VRR/refresh-rate monitoring and locks the map to 60 fps on high-refresh-rate displays.
the attribute set to initialise the MapView with
the default style attribute resource to apply to this MapView