Skip to content

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.

License

Notifications You must be signed in to change notification settings

CameraKit/camerakit-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9e1bce3 · Sep 4, 2018
Mar 18, 2018
Aug 12, 2018
Aug 27, 2018
Sep 4, 2018
Jun 28, 2018
Oct 31, 2017
Aug 11, 2018
Aug 12, 2018
Sep 4, 2018
Feb 13, 2018
Jul 3, 2018
Mar 27, 2018
Feb 7, 2018
Feb 7, 2018

Repository files navigation

CameraKit Header

CameraKit Header Buddy.Works

Join Slack Code Climate Code Climate

What is CameraKit?

CameraKit takes one of the hardest Android APIs and makes it into a high level and easy to use library that solves all of your problems.

With CameraKit you are able to effortlessly do the following...

  • Image and video capture seamlessly working with the same preview session.
  • Automatic system permission handling.
  • Automatic preview scaling.
  • Create a CameraView of any size (not just presets!).
  • Automatic output cropping to match your CameraView bounds.
  • Multiple capture methods.
    • METHOD_STANDARD: an image captured normally using the camera APIs.
    • METHOD_STILL: a freeze frame of the CameraView preview (similar to SnapChat and Instagram) for devices with slower cameras.
    • METHOD_SPEED: automatic capture method determination based on measured speed.
  • Built-in continuous focus.
  • Built-in tap to focus.
  • Built-in pinch to zoom.

Sponsored By

Setup

Add CameraKit to the dependencies block in your app level build.gradle:

implementation 'com.camerakit:camerakit:1.0.0'

Usage

To use CameraKit, simply add a CameraKitView to your layout:

<com.camerakit.CameraKitView
    android:id="@+id/camera"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Make sure you override onResume and onPause in your activity, and make pass-through calls CameraKit with CameraKitView.onResume() and CameraKitView.onPause().

@Override
protected void onResume() {
    super.onResume();
    cameraView.onResume();
}

@Override
protected void onPause() {
    cameraView.onPause();
    super.onPause();
}

Detailed Documentation

To check out detailed docs, visit our Documentation Website

License

CameraKit is MIT License