class Firebase::Admin::Messaging::LightSettings

Represents settings to control notification LED that can be included in an {AndroidNotification}.

Attributes

color[RW]

@return [String]

Sets color of the LED in `#rrggbb` or `#rrggbbaa` format.
light_off_duration[RW]

@return [Numeric]

Along with {light_on_duration}, defines the blink rate of LED flashes.
light_on_duration[RW]

@return [Numeric]

Along with {light_off_duration}, defines the blink rate of LED flashes.

Public Class Methods

new(color:, light_on_duration:, light_off_duration:) click to toggle source

Initializes a {LightSettings}.

@param [String] color

The color of the LED in `#rrggbb` or `#rrggbbaa` format.

@param [Numeric] light_on_duration

Along with {light_off_duration}, defines the blink rate of LED flashes.

@param [Numeric] light_off_duration

Along with {light_on_duration}, defines the blink rate of LED flashes.
# File lib/firebase/admin/messaging/light_settings.rb, line 26
def initialize(color:, light_on_duration:, light_off_duration:)
  self.color = color
  self.light_on_duration = light_on_duration
  self.light_off_duration = light_off_duration
end