It seems here’s a related post:
and from that, it appears for iOS at least, there’s no exposed interface to configure network settings. Maybe not even Android, not sure. But at least for Android, one can enable/disable wifi/data connection, where that doesn’t seem to be available on iOS at all.