Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor listen in terms of start. #1037

Merged
merged 1 commit into from Dec 29, 2015
Merged

Refactor listen in terms of start. #1037

merged 1 commit into from Dec 29, 2015

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Dec 29, 2015

Fixes #1034, at least for start and listen.

Fixes flutter#1034, at least for start and listen.
@abarth
Copy link
Contributor

abarth commented Dec 29, 2015

lgtm

Hixie added a commit that referenced this pull request Dec 29, 2015
Refactor listen in terms of start.
@Hixie Hixie merged commit 1d3e751 into flutter:master Dec 29, 2015
@Hixie Hixie deleted the listen branch December 29, 2015 03:43
TahaTesser pushed a commit to NevercodeHQ/flutter that referenced this pull request Aug 13, 2020
This patch works by calculating the device's physical orientation from
accelerometer data. This is a tricky approach and I'd rather avoid it,
but it looks like a necessary evil based on a few reasons.

1. The specific callback we're registering doesn't give us any EXIF data
   or data on the photo's orientation.
   https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778647-captureoutput?language=objc
2. There is a better callback to use that does give us this data, but
   it's only supported on ios 11.0+ and the camera plugin supports
   10.0+.
   https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/2873949-captureoutput?language=objc
3. There's a straightforward iOS API that's supposed to give the
   physical device orientation that would normally be perfect for this,
   but it doesn't work when the UI is locked to portrait mode.
   https://developer.apple.com/documentation/uikit/uidevice/1620053-orientation?language=objc
   We've had Android issues in the past based on the Android API we used
   having this same limitation.

fixes flutter#16587
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all the dead code about iOS and iOS Simulator in flutter_tools
2 participants