Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Component used: Annotation Version used: 1.2.0
Hello,
Right now, when using the
@ChecksSdkIntAtLeast
annotation, you can specify the index of the lambda parameter that are run only starting from a given API level, but there are cases where you have multiple lambdas. In my specific case, they both shared the same minimum API level, so turning thelambda
annotation parameter into an array would address it, given the underlying lint checks are updated to support it.However, if someone bumps into the use case of having different minimum API levels per lambda, it'd fall short, unless the annotation is made repeatable (is it possible for a class level retention?)
I'd be happy if the first suggestion could be implemented into a future version of androidx.annotation.
All the best,
Louis CAD