Notification.Style
  public
  static
  
  abstract
  class
  Notification.Style
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.app.Notification.Style | 
An object that can apply a rich notification style to a Notification.Builder
 object.
Summary
| Fields | |
|---|---|
| 
    protected
    
    
    Notification.Builder | mBuilder
 | 
| Public constructors | |
|---|---|
| 
      Style()
      This constructor is deprecated. public access to the constructor of Style() is only useful for creating custom subclasses, but that has actually been impossible due to hidden abstract methods, so this constructor is now officially deprecated to clarify that this is intended to be disallowed. | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        Notification | 
      build()
      Calls  | 
| 
        
        
        
        
        
        void | 
      setBuilder(Notification.Builder builder)
       | 
| Protected methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      checkBuilder()
       | 
| 
        
        
        
        
        
        RemoteViews | 
      getStandardView(int layoutId)
       | 
| 
        
        
        
        
        
        void | 
      internalSetBigContentTitle(CharSequence title)
      Overrides ContentTitle in the expanded form of the template. | 
| 
        
        
        
        
        
        void | 
      internalSetSummaryText(CharSequence cs)
      Set the first line of text after the detail section in the expanded form of the template. | 
| Inherited methods | |
|---|---|
Fields
Public constructors
Style
public Style ()
      This constructor is deprecated.
    public access to the constructor of Style() is only useful for creating
 custom subclasses, but that has actually been impossible due to hidden abstract
 methods, so this constructor is now officially deprecated to clarify that this is
 intended to be disallowed.
  
Public methods
build
public Notification build ()
Calls Notification.Builder.build() on the Builder this Style is
 attached to.
 
Note: Calling build() multiple times returns the same Notification instance, so reusing a builder to create multiple Notifications is discouraged.
| Returns | |
|---|---|
| Notification | the fully constructed Notification | 
setBuilder
public void setBuilder (Notification.Builder builder)
| Parameters | |
|---|---|
| builder | Notification.Builder | 
Protected methods
getStandardView
protected RemoteViews getStandardView (int layoutId)
| Parameters | |
|---|---|
| layoutId | int | 
| Returns | |
|---|---|
| RemoteViews | |
internalSetBigContentTitle
protected void internalSetBigContentTitle (CharSequence title)
Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle().
| Parameters | |
|---|---|
| title | CharSequence | 
internalSetSummaryText
protected void internalSetSummaryText (CharSequence cs)
Set the first line of text after the detail section in the expanded form of the template.
| Parameters | |
|---|---|
| cs | CharSequence | 
