Package com.marigold.sdk.interfaces
        Interface NotificationActionTappedListener
- 
                    
                    
- All Implemented Interfaces:
 
public interface NotificationActionTappedListenerListener used to identify when a notification action was tapped <br></br><br></br>
For example, if you want to log when a notification action with title 'OK' is tapped.
You could implement a listener like this:
class MyNotificationActionTappedListener: NotificationActionTappedListener { private val TAG = "NotificationLogger" override onNotificationActionTapped(context: Context?, bundle: Bundle?, title: String?, category: String?, actionState: NotificationActionState) { if(title == "OK") { Log.i(TAG, "OK action tapped!") } } }Add your implementation using Marigold.addNotificationActionTappedListener
... val marigold = Marigold() Marigold.startEngine(getApplicationContext(), "your sdk key") Marigold.addNotificationActionTappedListener(MyNotificationActionTappedListener()) ... 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description abstract UnitonNotificationActionTapped(Context context, Bundle bundle, String title, String category, NotificationActionState actionState)Called when the notification is tappedNote: You should not try to load/save data to Marigold directly from this method - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
onNotificationActionTapped
abstract Unit onNotificationActionTapped(Context context, Bundle bundle, String title, String category, NotificationActionState actionState)
Called when the notification is tapped
Note: You should not try to load/save data to Marigold directly from this method
- Parameters:
 context- the application contextbundle- notification datatitle- the title of the tapped actioncategory- the category the tapped action belongs toactionState- the NotificationActionState the application will be left in after the notification action handling
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -