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

Usable in Java ? #84

Open
jayantur13 opened this issue Dec 12, 2020 · 3 comments
Open

Usable in Java ? #84

jayantur13 opened this issue Dec 12, 2020 · 3 comments

Comments

@jayantur13
Copy link

Hello there,
I just imported the library..Tried to use it but not getting in to work..Any help on how can I use it in Java.

Regards.

@kinnerapriyap
Copy link
Owner

kinnerapriyap commented Jan 4, 2021

@jayantur13 The Companion will allow you to access the intent in java.

Shergil.Companion.create(this)
    .mimeTypes(mimeTypes)
    .showDisallowedMimeTypes(false)
    .numOfColumns(3)
    .theme(R.style.CustomGalleryStyle_Shergil)
    .allowPreview(true)
    .allowCamera(false)
    .orientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
    .withRequestCode(REQUEST_IMAGE);

@jayantur13
Copy link
Author

No,its not working.Not getting imported in my Activity/Fragment.

@kinnerapriyap
Copy link
Owner

Can you share your code or the link to your repository? It would be helpful if you could provide more information @jayantur13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants