Class NotificationBuilder
java.lang.Object
com.exxothermic.audioeverywheresdk.NotificationBuilder
- All Implemented Interfaces:
Serializable
Class that provides a notification builder to encapsulate the process and parameters used to
build them
- Since:
- 7/14/14
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotificationBuilder
(String mNotificationTitle, int mSmallIconId, Class<?> mActivityToStart) Default constructor for the factory. -
Method Summary
Modifier and TypeMethodDescriptionandroid.app.Notification
buildNotification
(String notificationText, android.content.Context contextToUse, android.support.v4.media.session.MediaSessionCompat mediaSession, boolean isForPlay) Method that will build a notification based on the initialization parameters and the given channel name
-
Field Details
-
ACTION_PLAY
- See Also:
-
ACTION_PAUSE
- See Also:
-
ACTION_NEXT
- See Also:
-
ACTION_PREVIOUS
- See Also:
-
-
Constructor Details
-
NotificationBuilder
Default constructor for the factory. It sets the title and the notification icon on the notification- Parameters:
mNotificationTitle
- the title to use on the notificationmSmallIconId
- the small icon id to use on the notificationmActivityToStart
- the class that will be executed when the notification is touched
-
-
Method Details
-
buildNotification
public android.app.Notification buildNotification(String notificationText, android.content.Context contextToUse, android.support.v4.media.session.MediaSessionCompat mediaSession, boolean isForPlay) Method that will build a notification based on the initialization parameters and the given channel name- Parameters:
notificationText
- the channel name that will be displayed on the notification- Returns:
- the configured notification
-