| java.lang.Object | ||
| ↳ | Fragment | |
| ↳ | com.mapsted.inapp_notification.InAppNotificationsFragment | |
InAppNotificationFragment shows in app notification block. In app notification may contain more than 1 notification items that can be scrolled horizontally.
Optionally, You can use MapstedInAppNotificationsApi instead of this fragment directly.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | InAppNotificationsFragment.Listener | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final String | TAG | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| InAppNotificationsFragment() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addInAppNotification(InAppNotification item, boolean toFront)
add an item
| ||||||||||
| static InAppNotificationsFragment | newInstance() | ||||||||||
| void | onAttach(Context context) | ||||||||||
| void | onCreate(Bundle savedInstanceState) | ||||||||||
| View | onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||||||||||
| void | onStart() | ||||||||||
| void | onViewCreated(View view, Bundle savedInstanceState) | ||||||||||
| void |
removeInAppNotification(String id)
remove an item
| ||||||||||
| void |
setListener(InAppNotificationsFragment.Listener listener)
set listener
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
add an item
| item | item |
|---|---|
| toFront | default is false i.e. items are pushed in end. |
remove an item
set listener
| listener | listener |
|---|