NetworkPlugin.onLine()
PluginNetworkPluginonLineLess than 1 minute
Check if the network is online;
NetworkPlugin.onLine()
Parameters
- None
Return
Returns a boolean; true if the network is accessible,
false if network connection is lost.
Example
import { networkPlugin } from "@plaoc/plugins";
const isOnline = networkPlugin.onLine();
Platform Support
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
onLine | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7