sách gpt4 ăn đã đi

android - Có chú thích @minApi tương tự như chú thích @TargetApi trong Android không?

In lại 作者:搜寻专家 更新时间:2023-11-01 08:32:01 33 4
mua khóa gpt4 giày nike

int API_VERSION = 21;

@TargetApi(API_VERSION)在Android中用于指定该方法/类支持API_VERSION及以下。

我们是否可以镜像类似的东西,指定仅支持 API_VERSION 及更高版本的方法或类?

注意:- 我没有找到任何这样的注解,但想问问社区他们是否遇到过类似的事情或者已经实现了自己的注解?

câu trả lời hay nhất

@RequiresApi :

Denotes that the annotated element should only be called on the given API level or higher.

This is similar in purpose to the older @TargetApi annotation, but more clearly expresses that this is a requirement on the caller, rather than being used to "suppress" warnings within the method that exceed the minSdkVersion.

关于android - 是否有@minApi 注释,类似于Android 中的@TargetApi 注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39732150/

33 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress