Loading...
Searching...
No Matches
com.navigine.view.DefaultNavigationViewConfig Class Reference

Configuration for DefaultNavigationView. Controls visibility of built-in widgets. More...

Inherits DefaultNavigineViewConfig.

Classes

class  Builder
 

Static Public Member Functions

static Builder builder ()
 
static DefaultNavigationViewConfig defaultConfig ()
 

Static Public Attributes

static final int WIDGET_ZOOM_CONTROLS = DefaultNavigineViewConfig.WIDGET_ZOOM_CONTROLS
 
static final int WIDGET_FOLLOW_ME = 1 << 1
 
static final int WIDGET_FLOOR_SELECTOR = DefaultNavigineViewConfig.WIDGET_FLOOR_SELECTOR
 
static final int WIDGET_ALL = 0x7
 

Detailed Description

Configuration for DefaultNavigationView. Controls visibility of built-in widgets.

Java code snippet:

DefaultNavigationViewConfig viewConfig = DefaultNavigationViewConfig.builder()
.visibleWidgets(DefaultNavigationViewConfig.WIDGET_ZOOM_CONTROLS | DefaultNavigationViewConfig.WIDGET_FOLLOW_ME)
.build();
ZoomControlsConfig zoomConfig = ZoomControlsConfig.builder()
.buttonBackgroundColor(0xF2FAFAFA)
.build();
FollowMeButtonConfig followMeConfig = FollowMeButtonConfig.builder()
.accentColor(0xFF30AAD9)
.build();
// followMeConfig.followMeIcon(drawable);
// zoomConfig.zoomInIcon(drawable); zoomConfig.zoomOutIcon(drawable);

Kotlin code snippet:

val viewConfig = DefaultNavigationViewConfig.builder()
.visibleWidgets(DefaultNavigationViewConfig.WIDGET_ZOOM_CONTROLS or DefaultNavigationViewConfig.WIDGET_FOLLOW_ME)
.build()
val zoomConfig = ZoomControlsConfig.builder()
.buttonBackgroundColor(0xF2FAFAFA.toInt())
.build()
val followMeConfig = FollowMeButtonConfig.builder()
.accentColor(0xFF30AAD9.toInt())
.build()
// followMeConfig.followMeIcon(drawable)
// zoomConfig.zoomInIcon(drawable); zoomConfig.zoomOutIcon(drawable)

Definition at line 17 of file DefaultNavigationViewConfig.java.

Member Function Documentation

◆ builder()

static Builder com.navigine.view.DefaultNavigationViewConfig.builder ( )
inlinestatic

Definition at line 28 of file DefaultNavigationViewConfig.java.

◆ defaultConfig()

static DefaultNavigationViewConfig com.navigine.view.DefaultNavigationViewConfig.defaultConfig ( )
inlinestatic

Definition at line 32 of file DefaultNavigationViewConfig.java.

Member Data Documentation

◆ WIDGET_ALL

final int com.navigine.view.DefaultNavigationViewConfig.WIDGET_ALL = 0x7
static

Definition at line 22 of file DefaultNavigationViewConfig.java.

◆ WIDGET_FLOOR_SELECTOR

final int com.navigine.view.DefaultNavigationViewConfig.WIDGET_FLOOR_SELECTOR = DefaultNavigineViewConfig.WIDGET_FLOOR_SELECTOR
static

Definition at line 21 of file DefaultNavigationViewConfig.java.

◆ WIDGET_FOLLOW_ME

final int com.navigine.view.DefaultNavigationViewConfig.WIDGET_FOLLOW_ME = 1 << 1
static

Definition at line 20 of file DefaultNavigationViewConfig.java.

◆ WIDGET_ZOOM_CONTROLS

final int com.navigine.view.DefaultNavigationViewConfig.WIDGET_ZOOM_CONTROLS = DefaultNavigineViewConfig.WIDGET_ZOOM_CONTROLS
static

Definition at line 19 of file DefaultNavigationViewConfig.java.


The documentation for this class was generated from the following file: