useMainNavHost

@RequiresApi(value = 33)
@RequiresPermission(allOf = ["android.permission.BLUETOOTH_CONNECT", "android.permission.BLUETOOTH_SCAN"])
fun NavHostController.useMainNavHost(modifier: Modifier = Modifier, mutableFloatingButtonBuilder: MutableFloatingButtonBuilder, signOut: () -> Unit, onHomeDeviceClick: (BluetoothDeviceWithConfig) -> Unit, onAccountDeviceClick: (BluetoothDeviceWithConfig) -> Unit = onHomeDeviceClick)

Parameters

modifier

Modifier applied to NavHost

mutableFloatingButtonBuilder

MutableState of FAB builder - used for setting the FAB

signOut

callback to sign out

onHomeDeviceClick

callback invoked when BluetoothDevice was selected on HomeView

onAccountDeviceClick

callback invoked when BluetoothDevice was selected on AccountView