Check out the latest news from Firebase at Cloud Next 2025.
Learn more.
Send feedback
LightSettings interface
Stay organized with collections
Save and categorize content based on your preferences.
Represents settings to control notification LED that can be included in AndroidNotification .
Signature:
export interface LightSettings
Properties
Property
Type
Description
color
string
Required. Sets color of the LED in #rrggbb
or #rrggbbaa
format.
lightOffDurationMillis
number
Required. Along with light_on_duration
, defines the blink rate of LED flashes.
lightOnDurationMillis
number
Required. Along with light_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 with light_on_duration
, defines the blink rate of LED flashes.
Signature:
lightOffDurationMillis : number ;
LightSettings.lightOnDurationMillis
Required. Along with light_off_duration
, defines the blink rate of LED flashes.
Signature:
lightOnDurationMillis : number ;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[]]