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

Update getting-started.md #1234

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions docs/_about/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
layout: page
title: "Getting Started"
description: "Simple guide to take your first picture"
Expand Down Expand Up @@ -38,27 +37,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {
}
```

Can't resolve the lifecycle owner interface? Read [below](#without-support-libraries).

### Set up a CameraListener

The next thing to do is to add a new `CameraListener` to be notified about camera events.
You can do this on a per-action basis, but it's easier to just add one when the UI is created:

```java
camera.addCameraListener(new CameraListener() {
@Override
public void onPictureTaken(PictureResult result) {
// A Picture was taken!
}

@Override
public void onVideoTaken(VideoResult result) {
// A Video was taken!
}

// And much more
})
Can't resolve the lifecycle owner interface? Read [below](#without-support-libraries).java
```

### Taking a picture
Expand Down