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.



5265
5266
5267
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5265

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)


5258
5259
5260
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5258

def screen_brightness
  @screen_brightness
end

#screen_brightness_modeString

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

Returns:

  • (String)


5263
5264
5265
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5263

def screen_brightness_mode
  @screen_brightness_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5270
5271
5272
5273
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5270

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