UiModeManager.Contrast Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the color contrast for the user.
public virtual float Contrast { [Android.Runtime.Register("getContrast", "()F", "GetGetContrastHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getContrast", "()F", "GetGetContrastHandler", ApiSince=34)>]
member this.Contrast : single
Property Value
The color contrast, float in [-1, 1] where <ul> <li> 0 corresponds to the default contrast </li> <li> -1 corresponds to the minimum contrast </li> <li> 1 corresponds to the maximum contrast </li> </ul>
- Attributes
Remarks
Returns the color contrast for the user.
<strong>Note:</strong> You need to query this only if your application is doing its own rendering and does not rely on the material rendering pipeline.
Java documentation for android.app.UiModeManager.getContrast()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.