setColorLED

open fun setColorLED(color: Int)

Sets the LED notification color.

Configures the color of the notification LED that blinks when notifications arrive. LED must be enabled first using setEnableLED.

Note: LED color support varies by device. Many modern devices no longer have physical notification LEDs. Example:


	  // Blue LED for general notifications
	  PushwooshNotificationSettings.setEnableLED(true);
	  PushwooshNotificationSettings.setColorLED(Color.BLUE);
	
	  // Red LED for urgent notifications
	  PushwooshNotificationSettings.setColorLED(Color.RED);
	
	  // Brand color from resources
	  int brandColor = ContextCompat.getColor(context, R.color.brand_primary);
	  PushwooshNotificationSettings.setEnableLED(true);
	  PushwooshNotificationSettings.setColorLED(brandColor);
	

Parameters

color

LED color as an integer (use android.graphics.Color or color resource)

See also