Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request brings big upgrades to the arcore_flutter_plugin, with a focus on turning on and using geospatial features. The changes aim to boost the plugin's function and strength letting developers create more engaging, location-aware AR experiences. Here's a rundown of the updates:
Geospatial Mode Activation
Added support to turn on geospatial mode in AR sessions (enableGeospatialMode).
Camera Geospatial Pose Tracking
Added a feature to keep tabs on the camera's geospatial position during AR sessions.
Created a new Dart class, ArCoreGeospatialPose, to package geospatial info (latitude, longitude, altitude, and orientation).
Built a platform channel method to get the geospatial position from the native ARCore session.
Technical Details
Android Implementation:
Changed ArCoreView.kt to include checks for geospatial mode support using session.isGeospatialModeSupported.
Tweaked configuration to make sure geospatial features turn on when supported.
Expanded platform channel communication to pull geospatial position data from the AR session.
Dart Interface:
Changed arcore_android_view.dart and arcore_view.dart to include methods and parameters for geospatial features.
Made the API easier to use and better at handling errors for geospatial mode integration.
Impact
Helps create AR apps for navigation or location-based services.
Testing
Checked that geospatial mode starts on devices that can use it.
Made sure the AR sessions get accurate geospatial pose data.
This pull request sets up the basics for adding better map features to Flutter apps. It helps developers create AR experiences that are more engaging and aware of their surroundings.