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

add request code change in builder #3

Open
wants to merge 1 commit into
base: master
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import android.util.Log;

import java.io.File;

Expand All @@ -18,7 +17,7 @@ public class Camera {
/**
* public variables to be used in the builder
*/
public static final int REQUEST_TAKE_PHOTO = 1;
public static int REQUEST_TAKE_PHOTO = 1;
public static final String IMAGE_JPG = "jpg";
public static final String IMAGE_JPEG = "jpeg";
public static final String IMAGE_PNG = "png";
Expand Down Expand Up @@ -207,6 +206,11 @@ public CameraBuilder setCompression(int compression){
Camera.this.compression = compression;
return this;
}

public CameraBuilder setRequestCode(int requestCode) {
Camera.REQUEST_TAKE_PHOTO = requestCode;
return this;
}
}
}