UNPKG

nativescript-dna-netservices

Version:

NativeScript plugin for Bonjour/ZeroConf and network monitoring. RxJS based APIs for Android and iOS.

12 lines (11 loc) 507 B
import { Observable } from "rxjs"; import { NetworkStatus, IAddress } from "./netservice.common"; export declare class NetworkMonitorService { static monitorNetwork(): Observable<NetworkStatus>; static getWiFiIpAddress(): Observable<string>; static getCellularIpAddress(): Observable<string>; static getNetworkStatus(): Observable<NetworkStatus>; static dumpIpAddress(): Observable<IAddress[]>; private static getNetworkStatusFromType; private static requestNetworkPermission; }