meshrabiyaConnectLauncher

fun meshrabiyaConnectLauncher(node: AndroidVirtualNode, logger: MNetLogger? = null, onStatusChange: (ConnectWifiLauncherStatus) -> Unit? = null, onResult: (ConnectWifiLauncherResult) -> Unit): ConnectWifiLauncher

Composable function that provides a ConnectWifiLauncher for managing Wi-Fi connections.

It handles permission requests, network association via CompanionDeviceManager, and provides status updates and connection results.

Return

A ConnectWifiLauncher that can be used to initiate Wi-Fi connections.

Parameters

node

The AndroidVirtualNode representing the local virtual node.

logger

Optional logger for debugging messages.

onStatusChange

Optional callback invoked when the launcher status changes.

onResult

Callback invoked with the result of the Wi-Fi connection attempt.