Package-level declarations

Functions

Link copied to clipboard
fun autoConvertByte(byteSize: Int): String
Link copied to clipboard
Link copied to clipboard
fun ChangeDeviceNameDialog(onDismiss: () -> Unit, onConfirm: (String) -> Unit, deviceName: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun HandleIncomingTransfers(uiState: ReceiveScreenModel, onAccept: (AppServer.IncomingTransferInfo) -> Unit = {}, onDecline: (AppServer.IncomingTransferInfo) -> Unit = {}, onDelete: (AppServer.IncomingTransferInfo) -> Unit = {}, onAutoFinishChange: (Boolean) -> Unit)
Link copied to clipboard
fun hasAnyPermission(context: Context, permissions: Array<String>): Boolean

Function to Check If Any Permission from a List is Granted

Link copied to clipboard
fun hasPermission(context: Context, permission: String): Boolean

Function to Check If Permission is Granted

Link copied to clipboard
fun HomeScreen(viewModel: HomeScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> HomeScreenViewModel(di, savedStateHandle) }, defaultArgs = null)), deviceName: String?)
Link copied to clipboard

Function to Check If Battery Optimization is Disabled

Link copied to clipboard
fun LanguageSetting(currentLanguage: String, onLanguageSelected: (String) -> Unit)
Link copied to clipboard
fun LogScreen(viewModel: LogScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> LogScreenViewModel(di, savedStateHandle) }, defaultArgs = null, ) ))
Link copied to clipboard
fun LongPressCopyableText(context: Context, text: String, textCopyable: String, textSize: Int, padding: Int = 0)
Link copied to clipboard
fun NetworkScreen(onNodeClick: (String) -> Unit, viewModel: NetworkScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> NetworkScreenViewModel(di, savedStateHandle)}, defaultArgs = null)))
Link copied to clipboard
Link copied to clipboard
fun OnboardingScreen(onComplete: () -> Unit)
Link copied to clipboard
fun onDownload(context: Context, transfer: AppServer.IncomingTransferInfo, uriOrPath: String)
Link copied to clipboard
fun PingScreen(virtualAddress: InetAddress, viewModel: PingScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> PingScreenViewModel(di, savedStateHandle, virtualAddress) }, defaultArgs = null ) ))
Link copied to clipboard

Function to Prompt User to Disable Battery Optimization

Link copied to clipboard
fun QRCodeView(qrcodeUri: String, barcodeEncoder: BarcodeEncoder, ssid: String?, password: String?, mac: String?, port: String?)
Link copied to clipboard
fun ReceiveScreen(viewModel: ReceiveScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> ReceiveScreenViewModel(di, savedStateHandle) }, defaultArgs = null, ) ), onAutoFinishChange: (Boolean) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun SelectDestNodeScreen(uris: List<Uri>, popBackWhenDone: () -> Unit, viewModel: SelectDestNodeScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> SelectDestNodeScreenViewModel(di, savedStateHandle, uris, popBackWhenDone) }, defaultArgs = null, ) ))
Link copied to clipboard
fun SendScreen(onSwitchToSelectDestNode: (List<Uri>) -> Unit, viewModel: SendScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> SendScreenViewModel(di, savedStateHandle, onSwitchToSelectDestNode)}, defaultArgs = null, ) ))
Link copied to clipboard
fun SettingItem(label: String, trailingContent: @Composable () -> Unit)
Link copied to clipboard
fun SettingsScreen(viewModel: SettingsScreenViewModel = viewModel( factory = ViewModelFactory( di = localDI(), owner = LocalSavedStateRegistryOwner.current, vmFactory = { di, savedStateHandle -> SettingsScreenViewModel(di, savedStateHandle)}, defaultArgs = null, )), onThemeChange: (AppTheme) -> Unit, onLanguageChange: (String) -> Unit, onRestartServer: () -> Unit, onDeviceNameChange: (String) -> Unit, onAutoFinishChange: (Boolean) -> Unit, onSaveToFolderChange: (String) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun StartHomeScreen(uiState: HomeScreenModel, node: AndroidVirtualNode, onSetIncomingConnectionsEnabled: (Boolean) -> Unit = { }, onClickDisconnectWifiStation: () -> Unit = { }, viewModel: HomeScreenViewModel = viewModel(), deviceName: String?, context: Context, currConcurrencyKnown: State<Boolean>, currConcurrencySupported: State<Boolean>, onSetBand: (ConnectBand) -> Unit = { }, onSetHotspotTypeToCreate: (HotspotType) -> Unit = { }, onConnectWifiLauncherResult: (ConnectWifiLauncherResult) -> Unit, logger: MNetLogger)
Link copied to clipboard
fun stopHotspotConfirmationDialog(context: Context, onConfirm: (Boolean) -> Unit)
Link copied to clipboard
fun ThemeSetting(currentTheme: AppTheme, onThemeSelected: (AppTheme) -> Unit)