getConnectionInfo()
Returns an enum specifying the current connection type and status.
Apple devices with lightning ports connected to Aila hardware will return AilaConnectionAnalogDuplex during normal operation, and AilaConnectionAnalogSimplex if there is a connection issue. Apple devices with USB-C ports connected to Aila hardware will return AilaConnectionDigital. Apple devices not connected to Aila hardware will return AilaConnectionNone.
AilaCordovaPlugin.getConnectionInfo()
Returns
Promise that resolves with a string describing the connection type:
"None"- No Aila hardware connected"Digital"- USB-C connection"AnalogSimplex"- Lightning connection (connection issue)"AnalogDuplex"- Lightning connection (normal operation)
Example
AilaCordovaPlugin.getConnectionInfo()
.then((connectionInfo) => {
console.log('Connection Type:', connectionInfo);
});