久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

新的@SystemApi 注解是什么意思,和@hide 有什么區別

What#39;s the meaning of new @SystemApi annotation, any difference from @hide?(新的@SystemApi 注解是什么意思,和@hide 有什么區別?)
本文介紹了新的@SystemApi 注解是什么意思,和@hide 有什么區別?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

Android 最近在其 SDK 源代碼中引入了@SystemApi.似乎與之前的 @hide 注釋效果相同,因為它們也被從 SDK jar 類中剝離.

Android introduced @SystemApi in its SDK source code recently. Seems like same in effect as the @hide annotation before, since they also got stripped from SDK jar classes.

應用程序是否有可能以不同于舊的@hide API 的方式調用它們.

Is there any chance an app can call them in ways different from the old @hide APIs.

/**
 * Indicates an API is exposed for use by bundled system applications.
 * <p>
 * These APIs are not guaranteed to remain consistent release-to-release,
 * and are not for use by apps linking against the Android SDK.
 * </p><p>
 * This annotation should only appear on API that is already marked <pre>@hide</pre>.
 * </p>
 *
 * @hide
 */

推薦答案

帶有@SystemApi 注釋的方法是帶有@hide 的方法的子集.這顯然是內部團隊(可能也是合作伙伴)的一個指標,這些方法是實際的 API,盡管不是針對公共開發人員.

Methods annotated with @SystemApi are a subset of ones with @hide. It's apparently an indicator for internal teams (perhaps also partners) that these methods are actual APIs, although not for public developers.

因此,@SystemApi 方法將比 @hide 方法更穩定,將來可以隨時更改,無需任何兼容性考慮,并且任何 OEM 都可以隨意更改它們.

As a result, @SystemApi methods will be more stable than @hide ones, which could be changed at any time in the future without any compatibility consideration, and also any OEM is allowed to change them at their own will.

如果您嘗試通過反射調用內部 API,請始終優先使用 @SystemApi 方法以實現更好的未來兼容性.

If you are trying to invoke internal APIs via reflection, always prefer @SystemApi methods for better future compatibility.

這篇關于新的@SystemApi 注解是什么意思,和@hide 有什么區別?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

UIScrollView will not scroll, even after content size set(UIScrollView 不會滾動,即使在內容大小設置后)
UIScrollView Direction RTL for Right to Left Languages(從右到左語言的 UIScrollView 方向 RTL)
Remove subviews from ScrollView Swift(從 ScrollView Swift 中刪除子視圖)
Clear content of UIScrollView(清除 UIScrollView 的內容)
Loop UIScrollView but continue decelerating(循環 UIScrollView 但繼續減速)
Swift iOS Set scrollView constraint below navigation bar programmatically(Swift iOS以編程方式在導航欄下方設置滾動視圖約束)
主站蜘蛛池模板: 91av在线影院| 婷婷综合在线 | 亚洲国产成人久久久 | 日本免费在线 | 成人在线一区二区三区 | 亚洲视频在线一区 | www亚洲一区 | 欧美日韩精品久久久免费观看 | 欧美成人精品一区二区三区 | 午夜视频在线播放 | 成人一区二区三区 | 美女久久久| 爱高潮www亚洲精品 中文字幕免费视频 | 不卡的av电影 | 亚洲欧美日韩一区二区 | 毛片一区二区 | 久久久一区二区 | 国产精品揄拍一区二区 | 欧美成视频 | 99热热热热 | 91高清在线视频 | 亚洲成人av | 国产精品久久亚洲 | 精品国产欧美 | www.日本在线播放 | 日韩亚洲一区二区 | 午夜伦理影院 | 日韩免费毛片视频 | 91在线影院 | 啪啪免费网 | 亚洲黄色一级 | 一区二区在线 | 欧美a级成人淫片免费看 | 国产成人综合久久 | 天天爱综合| 欧美精品一区二区三区蜜桃视频 | 久久天天躁狠狠躁夜夜躁2014 | 亚洲一区导航 | 在线a视频 | 天天爽夜夜骑 | 国产精品国产精品国产专区不蜜 |