Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 523 Bytes
export interface NetworkInfo {
online: boolean;
}
export interface NetworkStatusChangeCallback {
onStatusChange(info: NetworkInfo): void;
}
/**
* Responsable to handle Networks status
*/
export interface NetworkStatus {
/**
* Trigger callback whenever the network status change
*
* @param callback Callback to be called when network status change
*/
onStatusChangeListener(callback: NetworkStatusChangeCallback): void;
/**
* Check if device is offline
*/
isOffline(): Promise<boolean>;
}
You can’t perform that action at this time.