Docs
v6
v5
v4
API Docs

Camera

Camera tool

The PhotoEditor SDK offers a lightning fast camera implementation for Android to complement your editor, featuring all essential camera components as well as live filters.

In order to use our camera, you need to instantiate a CameraPreviewActivity using a CameraPreviewBuilder and present it. You can configure the camera to fit your needs by passing a SettingsList object to the builder. If no configuration is passed, the default setup is passed:

SettingsList settingsList = new SettingsList();
settingsList
    // Set custom camera export settings
    .getSettingsModel(CameraSettings.class)
    .setExportDir(Directory.DCIM, FOLDER)
    .setExportPrefix("camera_")
    // Set custom editor export settings
    .getSettingsModel(EditorSaveSettings.class)
    .setExportDir(Directory.DCIM, FOLDER)
    .setExportPrefix("result_")
    .setSavePolicy(
         EditorSaveSettings.SavePolicy.RETURN_ALWAYS_ONLY_OUTPUT
    );

    new CameraPreviewBuilder(this)
            .setSettingsList(settingsList)
            .startActivityForResult(this, CAMERA_PREVIEW_RESULT);

For more details, take a look at our getting started section.