Package-level declarations

Properties

Link copied to clipboard

Default icons for the bottom navigation bar

Functions

Link copied to clipboard
fun BottomNavigationBar(icons: List<Int> = defaultIcons, selectedItem: Int = 0, onItemSelected: (Int) -> Unit, iconColor: Color = Color.Black, selectedIconColor: Color = Color.Black, containerColor: Color = Color.Gray, onToggleSheet: (Int) -> Unit = {})

Bottom navigation bar that contains the icons of the different sections of the app

Link copied to clipboard
fun BuildingInfoSheetContent(mapBuild: MapBuild?, onDismissRequest: (Boolean) -> Unit, onPoiChange: (Poi) -> Unit, onFloorChange: (Floor) -> Unit, floor: Floor? = null, floors: List<Floor>? = emptyList())
Link copied to clipboard
fun IndoorNavigationScene(mapBuild: MapBuild? = null, mapTheme: MapThemeColors? = null, uiHandler: UiLayoutHandler? = UiLayoutHandler(mapBuild = mapBuild), cameraConfiguration: CameraConfiguration = CameraConfiguration( is2D = uiHandler?.is2D?.value ?: true ))

Ui component of the Indoor Navigation Engine library. It is responsible for rendering the 3D scene and the navigation, built on top of the SceneView and Filament libraries and compatible with Jetpack Compose.

Link copied to clipboard

Find the user's location on the map

Link copied to clipboard
fun MapModeSwitchButton(is2D: Boolean, onSwitch: () -> Unit)

Switch between 2D and 3D map modes

Link copied to clipboard
fun MapSceneBottomSheet(isVisible: Boolean, databaseHandler: DatabaseHandler? = null, onFloorChange: (Floor) -> Unit, onDismissRequest: (Boolean) -> Unit, poi: Poi?, floor: Floor?, contentIndex: Int, mapBuild: MapBuild?, onPoiChange: (Poi) -> Unit, initBottomPadding: Dp = 64.dp)

Bottom sheet that contains the building information, saved locations, and the POI details. sheets are displayed based on the content index, which is used to switch between the different sheets.

Link copied to clipboard
fun MapSceneLayout(mapBuild: MapBuild? = null, materialTheme: MaterialTheme = MaterialTheme, mapThemeColors: MapThemeColors? = null, databaseHandler: DatabaseHandler? = null, uiLayoutHandler: UiLayoutHandler? = null)

Main layout for the map scene screen that contains the indoor navigation scene, search bar, bottom navigation bar, and the bottom sheet. This layout is used to display the map scene screen. It takes the map build object and the context as parameters to load the map and initialize the database handler respectively.

Link copied to clipboard
fun NoDataSheet(text: String = "No data available", icon: ImageVector = ImageVector.vectorResource(id = R.drawable.round_not_interested_24), materialTheme: MaterialTheme = MaterialTheme)

A composable that displays a sheet with a message and an icon when there is no data available

Link copied to clipboard
Link copied to clipboard
fun PoiDetailsSheetContent(savedPlaces: List<Poi>, databaseHandler: DatabaseHandler? = null, poi: Poi?, validator: PoiValidator = PoiValidator(poi), context: Context = LocalContext.current)
Link copied to clipboard
fun SavedLocSheetContent(databaseHandler: DatabaseHandler? = null, savedPlaces: List<Poi> = emptyList(), onPoiChanged: (Poi) -> Unit)
Link copied to clipboard
fun SearchBarLayout(modifier: Modifier = Modifier, items: List<Poi>, placeholder: String? = stringResource(R.string.search), value: String? = "", onTitleChange: (String) -> Unit = {}, onPoiChange: (Poi) -> Unit = {}, backgroundColor: Color = Color.Transparent)

A composable that displays a search bar with a list of items in our case POIs it covers the whole screen and has a text field to search for items and a list of items

Link copied to clipboard
fun SearchItem(item: Poi = Poi())
Link copied to clipboard
fun TopSearchBar(modifier: Modifier = Modifier, items: List<Poi>, placeholder: String? = stringResource(R.string.search), value: String? = "", onTitleChange: (String) -> Unit = {}, onPoiChange: (Poi) -> Unit = {})

A composable that displays a search bar with a dropdown menu