USB Connection iOS

Is there any way to check whenever a device gets connected to the lightning port?