summaryNotificationColor

Returns the accent color for the summary notification icon.

On Android 5.0 (Lollipop) and higher, the notification icon is displayed in a single color on the notification shade. This method specifies that color, typically matching your app's brand color or theme.

The color is applied as a tint to the small icon and can help users visually identify notifications from your app. Example - Use brand color:


  
  public int summaryNotificationColor() {
      return 0xFF6200EE; // Purple brand color
  }
Example - Load from resources:

  
  public int summaryNotificationColor() {
      return getApplicationContext()
          .getResources()
          .getColor(R.color.notification_accent);
  }
Example - Use default color:

  
  public int summaryNotificationColor() {
      return -1; // Uses same color as individual notifications
  }

Return

Icon accent color in ARGB format (e.g., 0xFFRRGGBB), or -1 to use the default notification color configured for the app