Stay organized with collections
Save and categorize content based on your preferences.
DisplayLuts
class DisplayLuts
DisplayLuts provides the developers to apply Lookup Tables (Luts) to a android.view.SurfaceControl
. Luts provides ways to control tonemapping for specific content. The general flow is as follows:
DisplayLuts flow
Summary
Public methods |
Unit |
Set a Lut to be applied.
|
Unit |
Set Luts in order to be applied.
|
String |
|
Public constructors
DisplayLuts
DisplayLuts()
Create a DisplayLuts
instance.
Public methods
toString
fun toString(): String
Return |
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# DisplayLuts\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDisplayLuts\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/DisplayLuts \"View this page in Java\") \n\n```\nclass DisplayLuts\n```\n\n|---|-----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.DisplayLuts](#) |\n\nDisplayLuts provides the developers to apply Lookup Tables (Luts) to a [android.view.SurfaceControl](../view/SurfaceControl.html#). Luts provides ways to control tonemapping for specific content. The general flow is as follows:\n\nDisplayLuts flow\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Nested classes ||\n|---|----------------------------------------------------------------------|\n| | [Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry) \u003cbr /\u003e |\n\n| Public constructors ||\n|-----------------------------------------------------------------------|---|\n| [DisplayLuts](#DisplayLuts())`()` Create a [DisplayLuts](#) instance. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [set](#set(android.hardware.DisplayLuts.Entry))`(`entry:` `[DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry)`)` Set a Lut to be applied. |\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [set](#set(android.hardware.DisplayLuts.Entry,%20android.hardware.DisplayLuts.Entry))`(`first:` `[DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry)`, `second:` `[DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry)`)` Set Luts in order to be applied. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### DisplayLuts\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDisplayLuts()\n```\n\nCreate a [DisplayLuts](#) instance.\n\nPublic methods\n--------------\n\n### set\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun set(entry: DisplayLuts.Entry): Unit\n```\n\nSet a Lut to be applied.\n\nUse either this or [set(android.hardware.DisplayLuts.Entry,android.hardware.DisplayLuts.Entry)](#set(android.hardware.DisplayLuts.Entry,%20android.hardware.DisplayLuts.Entry)). The function will replace any previously set lut(s).\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `entry` | [DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry): Either an 1D Lut or a 3D Lut This value cannot be `null`. |\n\n### set\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun set(\n first: DisplayLuts.Entry, \n second: DisplayLuts.Entry\n): Unit\n```\n\nSet Luts in order to be applied.\n\nAn 1D Lut and 3D Lut will be applied in order. Use either this or [set(android.hardware.DisplayLuts.Entry)](#set(android.hardware.DisplayLuts.Entry)). The function will replace any previously set lut(s)\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------|\n| `first` | [DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry): An 1D Lut This value cannot be `null`. |\n| `second` | [DisplayLuts.Entry](/reference/kotlin/android/hardware/DisplayLuts.Entry): A 3D Lut This value cannot be `null`. |\n\n### toString\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun toString(): String\n```\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |"]]