Skip to main content

NetworkPlugin.onLine()

BFChainPluginNetworkPluginonLineLess 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/EventAndroidiOSDesktop-DevDesktop
onLineX

NetworkPlugin

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7