Giter VIP home page Giter VIP logo

Comments (7)

TorbenK avatar TorbenK commented on June 30, 2024

It's an async implementation so if you don't call wait it will not wait till the function finished, it will run asynchron.

I just had a quick look into the code but I didn't actually tried to reproduce your problem. I think there is no implementation for an automatic dismiss on click in Android. It just returns true if it's clicked, on iOS the message gets also removed. Anyway, it shouldnt be that hard to implement. You can probably forward the click event to the manager in the Android implementation and then send the REMOVE_CROUTON message with the sender crouton.

from toasts.forms.plugin.

hu55a1n1 avatar hu55a1n1 commented on June 30, 2024

Thanks for replying @TorbenK . The await problem was because I hadn't defined my showToast() method as async.
For the dismiss onClick in android, I actually downloaded your source code and modified the Crouton.cs file to hide it in the onClick(). I'm a newbie to xamarin and c#, could you elaborate/redirect me to a resource to do this in the way you have suggested?

from toasts.forms.plugin.

TorbenK avatar TorbenK commented on June 30, 2024

I added it, I just did minor testing. You can get it here:

https://github.com/TorbenK/Toasts.Forms.Plugin

from toasts.forms.plugin.

hu55a1n1 avatar hu55a1n1 commented on June 30, 2024

Thanks a lot @TorbenK !

from toasts.forms.plugin.

De4th69 avatar De4th69 commented on June 30, 2024

@TorbenK could you release your package on Nuget?

from toasts.forms.plugin.

TorbenK avatar TorbenK commented on June 30, 2024

it is on nuget, but without the android dismiss functionality.

i can update the package next days.

https://www.nuget.org/packages/Toasts.Forms.Plugin.Xamarin.1.3.1/

from toasts.forms.plugin.

EgorBo avatar EgorBo commented on June 30, 2024

I updated my package on the nuget to 1.0.0.7 with dismiss functionality, @TorbenK thanks for handling issues while I was offline 👍

from toasts.forms.plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.