Class: Google::Apis::AndroidmanagementV1::ScreenBrightnessSettings
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidmanagementV1::ScreenBrightnessSettings
 
 
- 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
- 
  
    
      #screen_brightness  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #screen_brightness_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ScreenBrightnessSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ScreenBrightnessSettings.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ScreenBrightnessSettings
Returns a new instance of ScreenBrightnessSettings.
      5263 5264 5265  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5263 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#screen_brightness ⇒ Fixnum
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
      5256 5257 5258  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5256 def screen_brightness @screen_brightness end  | 
  
#screen_brightness_mode ⇒ String
Optional. Controls the screen brightness mode.
Corresponds to the JSON property screenBrightnessMode
      5261 5262 5263  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5261 def screen_brightness_mode @screen_brightness_mode end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5268 5269 5270 5271  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5268 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  |