setEnableLED

open fun setEnableLED(on: Boolean)

Enables or disables LED blinking for notifications.

When enabled, the device's notification LED will blink when a notification is received (on devices that have an LED indicator). The LED color can be customized using setColorLED.

Note: Many modern devices no longer have physical notification LEDs. Example:


	  // Enable LED with custom color
	  PushwooshNotificationSettings.setEnableLED(true);
	  PushwooshNotificationSettings.setColorLED(Color.BLUE);
	
	  // Brand color LED for e-commerce app
	  int brandColor = ContextCompat.getColor(context, R.color.brand_primary);
	  PushwooshNotificationSettings.setEnableLED(true);
	  PushwooshNotificationSettings.setColorLED(brandColor);
	

Parameters

on

true to enable LED blinking, false to disable

See also