react-native-efilli-sdk
Version:
Efilli SDK for React Native - Consent Management Solution
19 lines (18 loc) • 676 B
TypeScript
/**
* Network manager interface for error reporting and network connection detection
*/
export interface NetworkManager {
/**
* Posts error information to the server
* @param errorType Type of error
* @param errorMessage Human-readable error message
* @param errorStack Error stack trace if available
* @returns Promise resolving to success status
*/
postError(errorType: string, errorMessage: string, errorStack: string): Promise<boolean>;
/**
* Gets current network connection type
* @returns Promise resolving to connection type (WIFI, 4G, 3G, 2G, NO_INTERNET, etc.)
*/
getConnectionType(): Promise<string>;
}