Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Completion handler #55

Open
talk2cerlin opened this issue Oct 10, 2017 · 3 comments
Open

Completion handler #55

talk2cerlin opened this issue Oct 10, 2017 · 3 comments

Comments

@talk2cerlin
Copy link

Does this plugin has a completion handler?

I want to run a callback method on closing of the message

@andreyrd
Copy link

I can open a PR for this. Should it run when the user manually closes the message, or also when the message automatically closes itself after the timeout? I'd prefer the latter for my use case. Maybe there's an elegant way to provide an option.

@DavidLari
Copy link

Maybe pass an enum parameter to the closure that says why it was called? Closed manually, or timed out.

@andreyrd
Copy link

andreyrd commented Nov 20, 2017

Errr, now that I think about it, the completion handler for being closed manually is already there...DropAction.

Edit: Sort of..not for swiping. :P

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

No branches or pull requests

3 participants