public class

MapstedInAppNotificationsApi

extends Object
implements InAppNotificationsApi
java.lang.Object
   ↳ com.mapsted.inapp_notification.MapstedInAppNotificationsApi

Class Overview

Use MapstedInAppNotificationsApi to show in app notification widget. The widget will be show in the fragmentContainerView that you will provide in the constructor. The widget is InAppNotificationsFragment fragment.

Summary

Nested Classes
interface MapstedInAppNotificationsApi.Listener interface for listening to interaction with in-app-notification widget  
Public Constructors
MapstedInAppNotificationsApi(FragmentManager supportFragmentManager, FragmentContainerView fragmentContainerView, MapstedInAppNotificationsApi.Listener listener)
Public Methods
void removeFromInAppNotificationBar(String id)
Remove an item from the widget
void showInInAppNotificationBar(InAppNotification inAppNotification, boolean showInFront)
show provided item in the widget
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.mapsted.inapp_notification.InAppNotificationsApi

Public Constructors

public MapstedInAppNotificationsApi (FragmentManager supportFragmentManager, FragmentContainerView fragmentContainerView, MapstedInAppNotificationsApi.Listener listener)

Parameters
supportFragmentManager fragmentManager
fragmentContainerView the widget will be shown in this view.

Example:

listener listener when user interaction with the widget

Public Methods

public void removeFromInAppNotificationBar (String id)

Remove an item from the widget

Parameters
id id of the inapp notification. getId()

public void showInInAppNotificationBar (InAppNotification inAppNotification, boolean showInFront)

show provided item in the widget

Parameters
inAppNotification item to show
showInFront by default, item are placed in the end. set this to true if you want the item to be shown in the front.