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

[TIMOB-23848] iOS: Ti.Media add focus methods and properties #8662

Closed
wants to merge 1 commit into from

Conversation

vijaysingh-axway
Copy link
Contributor

}
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues:

  • Put the square brackets in the same line as the if-statement (if (exp) {), same in for (expr) {
  • Put the configuration in the setter of the property, e.g. - (void)setFlashMode:(id)value and handle it there
  • Provide a getter, e.g. - (id)flashMode as well
  • I'm curious if setting the AVCaptureDevice will work here, because we don't use the AVFoundation camera API's but the UIImagePickerController API's

constants: Titanium.Media.FOCUS_MODE_*
type: Number
default: Depends on camera
platforms: [android, iphone, ipad]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to specify the platforms if all three are supported. It will use all by default. Same for the other docs as well.

summary: Constant to indicate focus mode of camera.
constants: Titanium.Media.FOCUS_MODE_*
type: Number
default: Depends on camera
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we write something else here? It doesn't really help the developer. So either more infos on how it depends on the camera or leave it out and add a link to the Apple docs in the description value.

@hansemannn
Copy link
Collaborator

Added some comments, but it looks pretty good already!

@hansemannn hansemannn changed the title [TIMOB-23848] : Ti.Media add focus methods and properties [TIMOB-23848] iOS: Ti.Media add focus methods and properties Dec 6, 2016
@hansemannn hansemannn added this to the 6.1.0 milestone Dec 6, 2016
@hansemannn hansemannn self-assigned this Dec 6, 2016
@hansemannn
Copy link
Collaborator

Closing this PR as it will be part of the camera-module.

@hansemannn hansemannn closed this May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants