NetworkPlugin
August 11, 2023
- Plugin
Network related plugin; The interface inherits from BaseEvent.
import { networkPlugin } from "@plaoc/plugin";
Properties
app_kit
Property used to store listener related objects; The type of the value is a Tkit object.
Methods
Check if network is online;
Get the network status;
Events
onLine
Triggered when the browser can access the network;
offLine
Triggered when the browser loses network;
change
Triggered when the browser gains/loses network access;
Platform Support
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
onLine | ✅ | ✅ | ✅ | X |
getStatus | ✅ | ✅ | ✅ | X |
event onLine | ✅ | ✅ | ✅ | X |
event offLine | ✅ | ✅ | ✅ | X |
event change | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.13.0