You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I need to know if it is possible detect when user close a Notification TSMessage sliding up (not from close button or touching inside it) and then, do some actions...
The text was updated successfully, but these errors were encountered:
TSMessageView has a private property called callback, u can set it by:
[TSMessage showNotificationInViewController:yourViewController
title:@"title"
subtitle:@"subtitle"
image:nil
type:TSMessageNotificationTypeSuccess
duration:TSMessageNotificationDurationAutomatic
callback:^{
// here do whatever u want after user tapped the banner
}
buttonTitle:nil
buttonCallback:nil
atPosition:TSMessageNotificationPositionTop
canBeDismissedByUser:YES];
However, I find there's a problem that when callback added, it'll invoke handleTap: instead of fadeMeOut, which means, the notification banner won't dismiss itself when u tap on it.
Hi! I need to know if it is possible detect when user close a Notification TSMessage sliding up (not from close button or touching inside it) and then, do some actions...
The text was updated successfully, but these errors were encountered: