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