protected virtual ConnectionType Convert(NWInterfaceType networkType) { return(networkType switch { NWInterfaceType.Cellular => ConnectionType.Cellular, NWInterfaceType.Wifi => ConnectionType.WiFi, _ => ConnectionType.Other });
public NWPathMonitor(NWInterfaceType interfaceType) { InitializeHandle(nw_path_monitor_create_with_type(interfaceType)); _SetUpdatedSnapshotHandler(SetUpdatedSnapshotHandlerWrapper); }
extern static IntPtr nw_path_monitor_create_with_type(NWInterfaceType interfaceType);
public NWPathMonitor(NWInterfaceType interfaceType) { InitializeHandle(nw_path_monitor_create_with_type(interfaceType)); }
public bool UsesInterfaceType(NWInterfaceType type) => nw_path_uses_interface_type(GetCheckedHandle(), type);
extern static bool nw_path_uses_interface_type(IntPtr handle, NWInterfaceType type);