Code example for Notification.Builder

0
 
  /** Core builder. */ 
  final Builder core;
 
  public IcsNotificationBuilder(final Context context) {
    core = new Builder(context);
  } 
 
  @Override 
  public NotificationBuilder setWhen(final long when) {
    core.setWhen(when);
    return this;
  } 
 
  @Override 
  public NotificationBuilder setSmallIcon(final int icon) {
    core.setSmallIcon(icon);
    return this;
  }