Class: Google::Apis::AndroidmanagementV1::ScreenBrightnessSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb

Overview

Controls for the screen brightness settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScreenBrightnessSettings

Returns a new instance of ScreenBrightnessSettings.



6598
6599
6600
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6598

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#screen_brightnessFixnum

Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. Corresponds to the JSON property screenBrightness

Returns:

  • (Fixnum)


6591
6592
6593
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6591

def screen_brightness
  @screen_brightness
end

#screen_brightness_modeString

Optional. Controls the screen brightness mode. Corresponds to the JSON property screenBrightnessMode

Returns:

  • (String)


6596
6597
6598
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6596

def screen_brightness_mode
  @screen_brightness_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6603
6604
6605
6606
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6603

def update!(**args)
  @screen_brightness = args[:screen_brightness] if args.key?(:screen_brightness)
  @screen_brightness_mode = args[:screen_brightness_mode] if args.key?(:screen_brightness_mode)
end