UNPKG

nativescript-dna-netservices

Version:

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

12 lines (11 loc) 508 B
import { Observable } from 'rxjs'; import { IAddress, NetworkStatus } 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 getInterfaceCardIpAddress; }