Ready-to-use navigation view with built-in UI: zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (building focus, sublocation, camera) and keeps widgets in sync. Use DefaultNavigationViewConfig to customize; config can be updated at runtime via setConfig(). More...
Inheritance diagram for com.navigine.view.DefaultNavigationView:Public Member Functions | |
| DefaultNavigationView (final Context context) | |
| Creates location view with provided context. Java code snippet: | |
| DefaultNavigationView (final Context context, final AttributeSet attrs) | |
| Creates location view with provided context and attributes. | |
| DefaultNavigationView (final Context context, final AttributeSet attrs, final DefaultNavigationViewConfig viewConfig) | |
| Creates location view with view config only (visibility). Widget configs use defaults. Java code snippet: | |
| DefaultNavigationView (final Context context, final AttributeSet attrs, final DefaultNavigationViewConfig viewConfig, final ZoomControlsConfig zoomConfig, final FollowMeButtonConfig followMeConfig, final FloorSelectorViewConfig floorConfig) | |
| Creates location view with provided context, attributes and configs. Widget configs are passed directly; null = use defaults. | |
| void | setViewConfig (DefaultNavigationViewConfig newViewConfig) |
| Updates view config (visibility) at runtime. | |
| void | setConfig (DefaultNavigationViewConfig newViewConfig, ZoomControlsConfig newZoomConfig, FollowMeButtonConfig newFollowMeConfig, FloorSelectorViewConfig newFloorConfig) |
| Updates configs at runtime. Changes apply immediately. null params keep current config. | |
| DefaultNavigationViewConfig | getViewConfig () |
| Returns current view config (visibility). | |
| ZoomControlsConfig | getZoomControlsConfig () |
| Returns current zoom controls config. | |
| FollowMeButtonConfig | getFollowMeButtonConfig () |
| Returns current follow me button config. | |
| FloorSelectorViewConfig | getFloorSelectorConfig () |
| Returns current floor selector config. | |
| FloorSelectorView | getFloorSelectorView () |
| Direct access for advanced customization. May be null if widget is hidden. | |
| ZoomControls | getZoomControls () |
| Direct access for advanced customization. May be null if widget is hidden. | |
| FollowMeButton | getFollowMeButton () |
| Direct access for advanced customization. May be null if widget is hidden. | |
| LocationWindow | getLocationWindow () |
| location view's main class. | |
| void | onStop () |
| Should be called from from corresponding method of activity or fragment containing this view. | |
| void | onStart () |
| Should be called from from corresponding method of activity or fragment containing this view. | |
| void | onLowMemory () |
| Should be called from the parent Activity/Fragment's corresponding method. | |
Static Public Attributes | |
| static final String | TAG = DefaultNavigationView.class.getCanonicalName() |
Protected Member Functions | |
| void | onDetachedFromWindow () |
Ready-to-use navigation view with built-in UI: zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (building focus, sublocation, camera) and keeps widgets in sync. Use DefaultNavigationViewConfig to customize; config can be updated at runtime via setConfig().
Basic usage with default config: Java code snippet:
Kotlin code snippet:
Custom config at init (visibility, colors, icons) via DefaultNavigationViewConfig: Java code snippet:
Kotlin code snippet:
Runtime config update: Java code snippet:
Kotlin code snippet:
Direct widget access for advanced customization: Java code snippet:
Kotlin code snippet:
Definition at line 75 of file DefaultNavigationView.java.
|
inline |
Creates location view with provided context. Java code snippet:
Kotlin code snippet:
Definition at line 92 of file DefaultNavigationView.java.
|
inline |
Creates location view with provided context and attributes.
Definition at line 97 of file DefaultNavigationView.java.
|
inline |
Creates location view with view config only (visibility). Widget configs use defaults. Java code snippet:
Kotlin code snippet:
Definition at line 110 of file DefaultNavigationView.java.
|
inline |
Creates location view with provided context, attributes and configs. Widget configs are passed directly; null = use defaults.
Definition at line 119 of file DefaultNavigationView.java.
|
inline |
Returns current floor selector config.
Definition at line 346 of file DefaultNavigationView.java.
|
inline |
Direct access for advanced customization. May be null if widget is hidden.
Java code snippet:
Kotlin code snippet:
Definition at line 358 of file DefaultNavigationView.java.
|
inline |
Direct access for advanced customization. May be null if widget is hidden.
Definition at line 362 of file DefaultNavigationView.java.
|
inline |
Returns current follow me button config.
Definition at line 344 of file DefaultNavigationView.java.
|
inlineinherited |
location view's main class.
Class is used to interact with the view.
Definition at line 61 of file LocationView.java.
|
inline |
Returns current view config (visibility).
Definition at line 340 of file DefaultNavigationView.java.
|
inline |
Direct access for advanced customization. May be null if widget is hidden.
Definition at line 360 of file DefaultNavigationView.java.
|
inline |
Returns current zoom controls config.
Definition at line 342 of file DefaultNavigationView.java.
|
inlineprotected |
Definition at line 133 of file DefaultNavigationView.java.
|
inlineinherited |
Should be called from the parent Activity/Fragment's corresponding method.
Definition at line 84 of file LocationView.java.
|
inlineinherited |
Should be called from from corresponding method of activity or fragment containing this view.
Definition at line 76 of file LocationView.java.
|
inlineinherited |
Should be called from from corresponding method of activity or fragment containing this view.
Definition at line 68 of file LocationView.java.
|
inline |
Updates configs at runtime. Changes apply immediately. null params keep current config.
Java code snippet:
Kotlin code snippet:
Definition at line 325 of file DefaultNavigationView.java.
|
inline |
Updates view config (visibility) at runtime.
Definition at line 309 of file DefaultNavigationView.java.
|
static |
Definition at line 76 of file DefaultNavigationView.java.