Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 1 | <html devsite="true"> |
| 2 | <head> |
| 3 | <title>CompositionGroup</title> |
| 4 | {% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} |
| 5 | {% include "_shared/_reference-head-tags.html" %} |
| 6 | </head> |
| 7 | <body> |
| 8 | <h1>CompositionGroup</h1> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 9 | <p> |
| 10 | <pre>interface CompositionGroup : <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionData.html">CompositionData</a></pre> |
| 11 | </p> |
| 12 | <hr> |
| 13 | <p><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html">CompositionGroup</a></code> is a group of data slots tracked independently by composition. These groups correspond to flow control branches (such as if statements and function calls) as well as emitting of a node to the tree.</p> |
| 14 | <p>This interface is not intended to be used directly and is provided to allow the tools API to have access to data tracked during composition. The tools API should be used instead which provides a more usable interpretation of the slot table.</p> |
| 15 | <h2>Summary</h2> |
| 16 | <div class="devsite-table-wrapper"> |
| 17 | <table class="responsive"> |
| 18 | <thead> |
| 19 | <tr> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 20 | <th colspan="100%"><h3>Public properties</h3></th> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 21 | </tr> |
| 22 | </thead> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 23 | <tbody class="list"> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 24 | <tr> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 25 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?></code></td> |
| 26 | <td> |
| 27 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#data()">data</a></code></div> |
| 28 | <p>The data stored in the slot table for this group.</p> |
| 29 | </td> |
| 30 | </tr> |
| 31 | <tr> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 32 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></code></td> |
| 33 | <td> |
| 34 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#key()">key</a></code></div> |
| 35 | <p>A value used to identify the group within its siblings and is typically a compiler generated integer but can be an object if the <code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#key()">key</a></code> composable is used.</p> |
| 36 | </td> |
| 37 | </tr> |
| 38 | <tr> |
| 39 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</code></td> |
| 40 | <td> |
| 41 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#node()">node</a></code></div> |
| 42 | <p>If the group represents a node this returns a non-null value which is the node that was emitted for the group.</p> |
| 43 | </td> |
| 44 | </tr> |
| 45 | <tr> |
| 46 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</code></td> |
| 47 | <td> |
| 48 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#sourceInfo()">sourceInfo</a></code></div> |
| 49 | <p>Information recorded by the compiler to help tooling identify the source that generated the group.</p> |
| 50 | </td> |
| 51 | </tr> |
| 52 | </tbody> |
| 53 | </table> |
| 54 | </div> |
Paweł Marks | 27466ca | 2022-02-04 22:04:42 +0100 | [diff] [blame] | 55 | <div class="devsite-table-wrapper"> |
| 56 | <table class="responsive" id="inhmethods"> |
| 57 | <thead> |
| 58 | <tr> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 59 | <th colspan="100%"><h3>Inherited properties</h3></th> |
Paweł Marks | 27466ca | 2022-02-04 22:04:42 +0100 | [diff] [blame] | 60 | </tr> |
| 61 | </thead> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 62 | <tbody class="list"> |
Paweł Marks | 27466ca | 2022-02-04 22:04:42 +0100 | [diff] [blame] | 63 | <tr> |
Owen Gray | bbefee1 | 2022-09-14 08:09:05 -0400 | [diff] [blame^] | 64 | <td><devsite-expandable><span class="expand-control">From <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionData.html">androidx.compose.runtime.tooling.CompositionData</a></span> |
Paweł Marks | 27466ca | 2022-02-04 22:04:42 +0100 | [diff] [blame] | 65 | <div class="devsite-table-wrapper"> |
| 66 | <table class="responsive"> |
Andrea Falcone | 80f1a8f | 2022-08-23 11:22:33 -0400 | [diff] [blame] | 67 | <tbody class="list"> |
Paweł Marks | 27466ca | 2022-02-04 22:04:42 +0100 | [diff] [blame] | 68 | <tr> |
| 69 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><<a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html">CompositionGroup</a>></code></td> |
| 70 | <td> |
| 71 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionData.html#compositionGroups()">compositionGroups</a></code></div> |
| 72 | <p>Iterate the composition data in the group.</p> |
| 73 | </td> |
| 74 | </tr> |
| 75 | <tr> |
| 76 | <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></code></td> |
| 77 | <td> |
| 78 | <div><code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionData.html#isEmpty()">isEmpty</a></code></div> |
| 79 | <p>Returns true if no composition data has been collected.</p> |
| 80 | </td> |
| 81 | </tr> |
| 82 | </tbody> |
| 83 | </table> |
| 84 | </div> |
| 85 | </devsite-expandable> </td> |
| 86 | </tr> |
| 87 | </tbody> |
| 88 | </table> |
| 89 | </div> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 90 | <h2>Public properties</h2> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 91 | <div><a name="getData()"></a><a name="setData()"></a><a name="getData--"></a><a name="setData--"></a> |
| 92 | <h3 class="api-name" id="data()">data</h3> |
| 93 | <pre class="api-signature no-pretty-print">val <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#data()">data</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?></pre> |
Fred Sladkey | 0f684c3 | 2021-08-02 15:06:14 -0400 | [diff] [blame] | 94 | <p>The data stored in the slot table for this group. This information includes the values stored for parameters that are checked for change, any value passed as a parameter for remember and the last value returned by remember, etc.</p> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 95 | </div> |
Tiem Song | 6fed3de | 2021-06-14 14:48:10 -0700 | [diff] [blame] | 96 | <div><a name="getKey()"></a><a name="setKey()"></a><a name="getKey--"></a><a name="setKey--"></a> |
| 97 | <h3 class="api-name" id="key()">key</h3> |
| 98 | <pre class="api-signature no-pretty-print">val <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#key()">key</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></pre> |
| 99 | <p>A value used to identify the group within its siblings and is typically a compiler generated integer but can be an object if the <code><a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#key()">key</a></code> composable is used.</p> |
| 100 | </div> |
| 101 | <div><a name="getNode()"></a><a name="setNode()"></a><a name="getNode--"></a><a name="setNode--"></a> |
| 102 | <h3 class="api-name" id="node()">node</h3> |
| 103 | <pre class="api-signature no-pretty-print">val <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#node()">node</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?</pre> |
| 104 | <p>If the group represents a node this returns a non-null value which is the node that was emitted for the group.</p> |
| 105 | </div> |
| 106 | <div><a name="getSourceInfo()"></a><a name="setSourceInfo()"></a><a name="getSourceInfo--"></a><a name="setSourceInfo--"></a> |
| 107 | <h3 class="api-name" id="sourceInfo()">sourceInfo</h3> |
| 108 | <pre class="api-signature no-pretty-print">val <a href="/reference/kotlin/androidx/compose/runtime/tooling/CompositionGroup.html#sourceInfo()">sourceInfo</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</pre> |
| 109 | <p>Information recorded by the compiler to help tooling identify the source that generated the group. The format of this string is internal and is interpreted by the tools API which translates this information into source file name and offsets.</p> |
| 110 | </div> |
| 111 | </body> |
| 112 | </html> |