Exemplo n.º 1
0
 public Builder setSmallIcon(int icon) {
   headsUp.setIcon(icon);
   //            super.setSmallIcon(icon);
   return this;
 }
Exemplo n.º 2
0
 public Builder setSticky(boolean isSticky) {
   headsUp.setSticky(isSticky);
   return this;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 /**
  * 显示全部界面
  *
  * @param isExpand
  */
 public Builder setUsesChronometer(boolean isExpand) {
   headsUp.setExpand(isExpand);
   return this;
 }
Exemplo n.º 6
0
 private Notification silencerNotification() {
   super.setSmallIcon(headsUp.getIcon());
   setDefaults(0);
   return this.build();
 }
Exemplo n.º 7
0
 public HeadsUp buildHeadUp() {
   headsUp.setNotification(this.build());
   headsUp.setActions(actions);
   headsUp.setBuilder(this);
   return headsUp;
 }