Reputation: 860
What is the benefit of adding annotations suggested by the lint such as "@ExperimentalApi" or other recommended stuff like this?
Does it mean in the future it can warn us if the API changed?
Upvotes: 2
Views: 1546
Reputation: 44813
Yes, it means that the API can change or be removed in future.
Experimental APIs are good for testing around new functionalities but usually their use is discouraged in production code.
PS: Kotlin now uses @RequiresOptIn
(and @OptIn
) instead of @Experimental
which is deprecated. You can find more info here
Upvotes: 1