public interface

InAppNotificationsApi

com.mapsted.inapp_notification.InAppNotificationsApi
Known Indirect Subclasses

Summary

Nested Classes
interface InAppNotificationsApi.Listener interface for listening to interaction with in-app-notification widget  
Public Methods
abstract boolean addViewAndClickListener(InAppNotificationsApi.Listener listener)
Register a callback whenever an item is viewed or clicked from in-app notification bar
abstract FragmentManager getFragmentManager()
Retrieve the fragment manager
abstract void removeFromInAppNotificationBar(String id)
Remove an item from the widget
abstract boolean removeViewAndClickListener(InAppNotificationsApi.Listener listener)
Unregister a callback whenever an item is viewed or clicked from in-app notification bar
abstract void showInInAppNotificationBar(InAppNotification inAppNotification, boolean showInFront)
show provided item in the widget

Public Methods

public abstract boolean addViewAndClickListener (InAppNotificationsApi.Listener listener)

Register a callback whenever an item is viewed or clicked from in-app notification bar

Parameters
listener the listener
Returns
  • whether or not added correctly

public abstract FragmentManager getFragmentManager ()

Retrieve the fragment manager

public abstract void removeFromInAppNotificationBar (String id)

Remove an item from the widget

Parameters
id id of the inapp notification. getId()

public abstract boolean removeViewAndClickListener (InAppNotificationsApi.Listener listener)

Unregister a callback whenever an item is viewed or clicked from in-app notification bar

Parameters
listener the listener
Returns
  • whether or not removed correctly

public abstract 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.