Add callback interface for restoreWifiState method.