LightSettings interface

Represents settings to control notification LED that can be included inAndroidNotification.

Signature:

exportinterfaceLightSettings

Properties

PropertyTypeDescription
colorstringRequired. Sets color of the LED in#rrggbb or#rrggbbaa format.
lightOffDurationMillisnumberRequired. Along withlight_on_duration, defines the blink rate of LED flashes.
lightOnDurationMillisnumberRequired. Along withlight_off_duration, defines the blink rate of LED flashes.

LightSettings.color

Required. Sets color of the LED in#rrggbb or#rrggbbaa format.

Signature:

color:string;

LightSettings.lightOffDurationMillis

Required. Along withlight_on_duration, defines the blink rate of LED flashes.

Signature:

lightOffDurationMillis:number;

LightSettings.lightOnDurationMillis

Required. Along withlight_off_duration, defines the blink rate of LED flashes.

Signature:

lightOnDurationMillis:number;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.