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

Autofocus as parameter #64

Merged
merged 8 commits into from
Aug 9, 2016
Merged

Autofocus as parameter #64

merged 8 commits into from
Aug 9, 2016

Conversation

dlazaro66
Copy link
Owner

@dlazaro66 dlazaro66 commented Aug 3, 2016

fixes #23

mCameraManager.setAutofocusInterval(autofocusIntervalInMs);
}

public void enableTorch(boolean isEnabled) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

`setTorchEnabled(boolean enabled)``

@@ -72,6 +72,12 @@
autoFocusAgainLater();
}

public void setAutofocusInterval(long autofocusIntervalMs) {
if (autofocusIntervalMs > 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (autofocusIntervalMs <= 0) {
   throw new IllegalArgumentException("AutoFocusInterval must be greater than 0.");
}

@@ -71,6 +72,10 @@ public void setDisplayOrientation(int degrees) {
}
}

public void setAutofocusInterval(long autofocusIntervalInMs) {
this.autofocusIntervalInMs = autofocusIntervalInMs;
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (autoFocusManager != null) {
   autoFocusManager.setAutofocusInterval(autofocusIntervalInMs);
}

@@ -97,6 +97,14 @@ public void stopCamera() {
mCameraManager.stopPreview();
}

public void setAutofocusInterval(long autofocusIntervalInMs) {
mCameraManager.setAutofocusInterval(autofocusIntervalInMs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could mCameraManager ever be null at this point?

@dlazaro66 dlazaro66 merged commit 7e02b18 into master Aug 9, 2016
@dlazaro66 dlazaro66 deleted the autofocus-as-parameter branch November 12, 2017 17:44
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.

AUTO_FOCUS_INTERVAL_MS
2 participants