Skip to content

Cameraa#138

Closed
Skeelow69 wants to merge 111 commits intoremove-nccfrom
main
Closed

Cameraa#138
Skeelow69 wants to merge 111 commits intoremove-nccfrom
main

Conversation

@Skeelow69
Copy link
Copy Markdown

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] <[email protected]>
…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.