Comments (7)
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.
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.
I added it, I just did minor testing. You can get it here:
https://github.com/TorbenK/Toasts.Forms.Plugin
from toasts.forms.plugin.
Thanks a lot @TorbenK !
from toasts.forms.plugin.
@TorbenK could you release your package on Nuget?
from toasts.forms.plugin.
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.
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)
- Unhandled Exception when using GetDeliveredNotifications method
- How to use CustomArgs? HOT 1
- Tapping on notification does not work on iOS HOT 1
- Notification with progress bar
- Toast comes multiple (Sometimes(?)) HOT 1
- ReceivedRemoteNotification not triggered after first notification received (iOS Xamarin Form) HOT 2
- What happened to Type and Duration?? HOT 2
- Message is being cut off HOT 1
- v3.3.2 does not work on android simulator (windows) HOT 1
- Toast plugin crashes on iPhone 10 and newer when receiving back-to-back messages HOT 1
- Notification Shows 3 Times on iOS HOT 1
- Do something when clicked ?
- Cannot access a disposed object
- Update to AndroidX
- System.ArgumentException: The key already existed in the dictionary. HOT 1
- Toast removes "DONE" from picker in IOS.
- Need to download version 2.0.4 source code HOT 2
- MacOS support HOT 1
- the banner message will have a blank space at the top HOT 2
- NotificationBuilder.Notify under Android 12 crashes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toasts.forms.plugin.