Skip to content

Cameraa #138

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

Closed
wants to merge 111 commits into from
Closed

Cameraa #138

wants to merge 111 commits into from

Conversation

Skeelow69
Copy link

import androidx.camera.extensions.BokehExtender;

void onCreate() {
// Create a Builder same as in normal workflow.
ImageCapture.Builder builder = new ImageCapture.Builder();

// Create a camera provider
ProcessCameraProvider cameraProvider = ...; // Get the provider instance

// Create an Extender object which can be used to apply extension
// configurations.
BokehImageCaptureExtender bokehImageCapture = new
        BokehImageCaptureExtender(builder);

// Select the camera
CameraSelector cameraSelector = new CameraSelector.Builder().
                                                  .requireLensFacing(CameraX.LensFacing.BACK)
                                                  .build();

// Query if extension is available (optional).
if (bokehImageCapture.isExtensionAvailable()) {
    // Enable the extension if available.
    bokehImageCapture.enableExtension();
}

// Finish constructing configuration with the same flow as when not using
// extensions.
ImageCapture useCase = new ImageCapture.Builder.build();
cameraProvider.bindToLifecycle(lifecycleOwner, cameraSelector, useCase);

}

j-ulrich and others added 30 commits July 17, 2020 00:47
An absolute path is required when calling `require()` from within the github-script
Adds note that absolute path is required
- update example for using `GITHUB_WORKSPACE` environment variable to keep things simple, and use less steps
- include `github` object as a parameter to the sample script to better illustrate usage
docs: use GITHUB_WORKSPACE environment variable
Add production licenses with licensed
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
…17.19

Bump lodash from 4.17.15 to 4.17.19
Remove text that seems to be repeated
Fix example function arguments in README
@jclem jclem closed this Apr 26, 2021
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.