Package-level declarations

Types

Link copied to clipboard
data class UriNameAndSize(val name: String?, val size: Long)

Represents the name and size of a file referenced by a Uri.

Properties

Link copied to clipboard

The permission string required for accessing nearby Wi-Fi devices.

Link copied to clipboard

Provides a DataStore instance named "meshr_settings" for storing persistent network-related preferences used by Meshrabiya.

Functions

Link copied to clipboard

Returns a detailed string describing the device and Wi-Fi capabilities.

Link copied to clipboard

Retrieves the local IP address of the AndroidVirtualNode from a Kodein DI container.

Link copied to clipboard

Retrieves the name and size of a file referenced by the given uri.

Link copied to clipboard

Checks whether the app has permission to connect to Bluetooth devices.

Link copied to clipboard

Checks whether the app has permission to access nearby Wi-Fi devices (Android 13+) or fine location (pre-Android 13).

Link copied to clipboard

Checks if the device supports Wi-Fi STA/AP concurrency (simultaneous station and access point mode).

Link copied to clipboard
inline fun <T> List<T>.updateItem(condition: (T) -> Boolean, function: (T) -> T): List<T>

Returns a new list with the first element that satisfies condition updated by function.

Link copied to clipboard
fun WifiListItem(wifiAddress: Int, wifiEntry: VirtualNode.LastOriginatorMessage, onClick: (nodeAddress: String) -> Unit? = null)

Displays a single Wi-Fi node in a list with device information and mesh network status.