trackClick
implementation for Composable onClick
functions that take parameters
#1409
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
In the Compose SDK,
com.datadog.android.compose.trackClick
cannot be used forComposable
s that take anonClick
with parameters, such asClickableText
which has a function signature:If we try to use it, there's a type mismatch:
Because
trackClick
is also a@Composable
, it doesn't seem like there's a way to wrap it in a lambda.eg. If we wished to print the
Int
parameterDescribe the solution you'd like
An implementation of
trackClick
that accepts a generically typedonClick
lambda parameter such as:The text was updated successfully, but these errors were encountered: