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

Interoperability with JAVA #20

Closed
mparyani445 opened this issue Feb 10, 2020 · 5 comments
Closed

Interoperability with JAVA #20

mparyani445 opened this issue Feb 10, 2020 · 5 comments

Comments

@mparyani445
Copy link

Hi,
I am working in a project using java, I want to know how to call this kotlin based interface in my JAVA activity?
Any help would be appreciated

@skywall
Copy link
Contributor

skywall commented Feb 10, 2020

Hi @mparyani445,

can you elaborate more on what do you want to achieve and what error you get?

This library should work as-is with Java.

@mparyani445
Copy link
Author

Thanks for the prompt response.
Actually I have implemented whatsapp like story highlights in one of my project, i want to achieve drag from top to dismiss the Story activity like whatsapp does.
I came across your library to achieve,
I want to know how to use below code in activity written in JAVA

override fun onCreate(savedInstanceState: Bundle?) {
  haulerView.setOnDragDismissedListener {
        finish() // finish activity when dismissed
    }
}

I am not able to use setOnDragDismissedListener method in java
can you please help ?

@skywall
Copy link
Contributor

skywall commented Feb 13, 2020

Hi @mparyani445, thank you for your report. I have fixed the issue within PR #21. I'm going to release a new version today.

@skywall
Copy link
Contributor

skywall commented Feb 13, 2020

Released. Feel free to try if the current solution is suitable for your needs and close the issue.

@mparyani445
Copy link
Author

Hey,
Thanks a ton!
Now I am able to use it in JAVA as well.

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