NetworkPlugin.onLine()

BFChainAugust 11, 2023
  • Plugin
  • NetworkPlugin
  • onLine
Less 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/plugin";
const isOnline = networkPlugin.onLine();

Platform Support

Property/Method/EventAndroidiOSDesktop-DevDesktop
onLineX

NetworkPlugin

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