java.lang.Object | |
↳ | com.mapsted.inapp_notification.MapstedInAppNotificationsApi |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapstedInAppNotificationsApi(FragmentManager supportFragmentManager, FragmentContainerView fragmentContainerView) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
addViewAndClickListener(InAppNotificationsApi.Listener listener)
Register a callback whenever an item is viewed or clicked from in-app notification bar
| ||||||||||
FragmentManager |
getFragmentManager()
Retrieve the fragment manager
| ||||||||||
void |
removeFromInAppNotificationBar(String id)
Remove an item from the widget
| ||||||||||
boolean |
removeViewAndClickListener(InAppNotificationsApi.Listener listener)
Unregister a callback whenever an item is viewed or clicked from in-app notification bar
| ||||||||||
void |
showInInAppNotificationBar(InAppNotification inAppNotification, boolean showInFront)
show provided item in the widget
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
supportFragmentManager | fragmentManager |
---|---|
fragmentContainerView | the widget will be shown in this view.
Example:
|
Register a callback whenever an item is viewed or clicked from in-app notification bar
listener | the listener |
---|
Retrieve the fragment manager
Remove an item from the widget
id | id of the inapp notification. getId()
|
---|
Unregister a callback whenever an item is viewed or clicked from in-app notification bar
listener | the listener |
---|
show provided item in the widget
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. |