CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
318 stars 229 forks source link

How to know if the phone has AR support? #137

Open kaciula opened 1 year ago

kaciula commented 1 year ago

Can you add a way to know if AR is supported on the phone?

With the old plugins I would do a check like the following:

if (Platform.isAndroid) { final bool hasArcoreSupport = await ArCoreController.checkArCoreAvailability(); return hasArcoreSupport; } else { return ARKitPlugin.checkConfiguration(ARKitConfiguration.imageTracking); }