Skip to content
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