public Builder setSmallIcon(int icon) { headsUp.setIcon(icon); // super.setSmallIcon(icon); return this; }
public Builder setSticky(boolean isSticky) { headsUp.setSticky(isSticky); return this; }
/** Set the second line of text in the platform notification template. */ public Builder setContentText(CharSequence text) { headsUp.setMessage(text); super.setContentText(text); return this; }
/** Set the first line of text in the platform notification template. */ public Builder setContentTitle(CharSequence title) { headsUp.setTitle(title); super.setContentTitle(title); return this; }
/** * 显示全部界面 * * @param isExpand */ public Builder setUsesChronometer(boolean isExpand) { headsUp.setExpand(isExpand); return this; }
private Notification silencerNotification() { super.setSmallIcon(headsUp.getIcon()); setDefaults(0); return this.build(); }
public HeadsUp buildHeadUp() { headsUp.setNotification(this.build()); headsUp.setActions(actions); headsUp.setBuilder(this); return headsUp; }