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.



6532
6533
6534
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6532

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)


6525
6526
6527
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6525

def screen_brightness
  @screen_brightness
end

#screen_brightness_modeString

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

Returns:

  • (String)


6530
6531
6532
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6530

def screen_brightness_mode
  @screen_brightness_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6537
6538
6539
6540
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6537

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