From bc177c3f80484f64f8b724fa4f5bb210b0e4cfb8 Mon Sep 17 00:00:00 2001 From: aymqad <101639065+aymqad@users.noreply.github.com> Date: Sat, 22 Apr 2023 15:33:01 +0300 Subject: [PATCH] Update getting-started.md --- docs/_about/getting-started.md | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/docs/_about/getting-started.md b/docs/_about/getting-started.md index 5cd3668ba..990c8ff58 100644 --- a/docs/_about/getting-started.md +++ b/docs/_about/getting-started.md @@ -1,4 +1,3 @@ ---- layout: page title: "Getting Started" description: "Simple guide to take your first picture" @@ -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