Class NotificationBuilder

java.lang.Object
com.exxothermic.audioeverywheresdk.NotificationBuilder
All Implemented Interfaces:
Serializable

public class NotificationBuilder extends Object implements Serializable
Class that provides a notification builder to encapsulate the process and parameters used to build them
Since:
7/14/14
See Also:
  • Field Details

  • Constructor Details

    • NotificationBuilder

      public NotificationBuilder(String mNotificationTitle, int mSmallIconId, Class<?> mActivityToStart)
      Default constructor for the factory. It sets the title and the notification icon on the notification
      Parameters:
      mNotificationTitle - the title to use on the notification
      mSmallIconId - the small icon id to use on the notification
      mActivityToStart - 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