https://kotlinlang.org logo
#compose
Title
# compose
n

Namig Tahmazli

09/08/2020, 3:01 PM
Hi. When I read documentation of each class or function, some samples are indicated there but I do not know how I can have a look at it. For Instance.
Copy code
* [key] is a utility composable that is used to "group" or "key" a block of execution inside of a
 * composition. This is sometimes needed for correctness inside of control-flow that may cause a
 * given composable invocation to execute more than once during composition.
 *
 * The value for a key *does not need to be globally unique*, and needs only be unique amongst the
 * invocations of [key] *at that point* in composition.
 *
 * For instance, consider the following example:
 *
 * @sample androidx.compose.runtime.samples.locallyUniqueKeys
Here I do not know how I can check
locallyUniqueKeys
to understand the given sample better. Do you know where I can find them?
1
a

Andrey Kulikov

09/08/2020, 3:13 PM
in long term is the plan to display them directly in studio. currently you can just find it in our sources using the name of the sample
n

Namig Tahmazli

09/08/2020, 3:18 PM
Hi @Andrey Kulikov. Thank you for quick reply. That is great that you shared it. Now I can check Samples 👍
n

nickbutcher

09/08/2020, 5:26 PM
6 Views