overrideNetworkPriorities

Override priorities of network interfaces.

The library decides which network interface by setting priorities to detected interfaces. The priorities depend on the interface type (Cellular vs. Wi-Fi), configuration (see networkUse preference key), and a special boost is given to the interface which is used by the signalling channel. This methods lets you override the priorities or ban (remove) interfaces based on your own rules. The interface with the highest priority will be picked.

This callback can be triggered also manually by calling rescan.

Return

The updated snapshot; null for autodetection.

Parameters

network

Snapshot of the network.