添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • android.support.v14.preference
  • android.support.v17.leanback
  • android.support.v17.leanback.app
  • android.support.v17.leanback.database
  • android.support.v17.leanback.graphics
  • android.support.v17.leanback.system
  • android.support.v17.leanback.widget
  • android.support.v17.leanback.widget.picker
  • android.support.v17.preference
  • android.support.v4
  • android.support.v4.accessibilityservice
  • android.support.v4.app
  • android.support.v4.content
  • android.support.v4.content.pm
  • android.support.v4.content.res
  • android.support.v4.database
  • android.support.v4.graphics
  • android.support.v4.graphics.drawable
  • android.support.v4.hardware.display
  • android.support.v4.hardware.fingerprint
  • android.support.v4.media
  • android.support.v4.media.session
  • android.support.v4.net
  • android.support.v4.os
  • android.support.v4.print
  • android.support.v4.provider
  • android.support.v4.text
  • android.support.v4.util
  • android.support.v4.view
  • android.support.v4.view.accessibility
  • android.support.v4.view.animation
  • android.support.v4.widget
  • android.support.v7.app
  • android.support.v7.appcompat
  • android.support.v7.cardview
  • android.support.v7.content.res
  • android.support.v7.graphics
  • android.support.v7.graphics.drawable
  • android.support.v7.gridlayout
  • android.support.v7.media
  • android.support.v7.mediarouter
  • android.support.v7.palette
  • android.support.v7.preference
  • android.support.v7.recyclerview
  • android.support.v7.util
  • android.support.v7.view
  • android.support.v7.widget
  • android.support.v7.widget.helper
  • android.support.v7.widget.util
  • android.support.v8.renderscript
  • android.system
  • android.telecom
  • android.telephony
  • android.telephony.cdma
  • android.telephony.gsm
  • android.test
  • android.test.mock
  • android.test.suitebuilder
  • android.test.suitebuilder.annotation
  • android.text
  • android.text.format
  • android.text.method
  • android.text.style
  • android.text.util
  • android.transition
  • android.util
  • android.view
  • android.view.accessibility
  • android.view.animation
  • android.view.inputmethod
  • android.view.textservice
  • android.webkit
  • android.widget
  • com.android.internal.backup
  • com.android.internal.logging
  • com.android.internal.os
  • com.android.internal.statusbar
  • com.android.internal.widget
  • com.android.test.runner
  • dalvik.annotation
  • dalvik.bytecode
  • dalvik.system
  • java.awt.font
  • java.beans
  • java.io
  • java.lang
  • java.lang.annotation
  • java.lang.ref
  • java.lang.reflect
  • java.math
  • java.net
  • java.nio
  • java.nio.channels
  • java.nio.channels.spi
  • java.nio.charset
  • java.nio.charset.spi
  • java.security
  • java.security.acl
  • java.security.cert
  • java.security.interfaces
  • java.security.spec
  • java.sql
  • java.text
  • java.util
  • java.util.concurrent
  • java.util.concurrent.atomic
  • java.util.concurrent.locks
  • java.util.function
  • java.util.jar
  • java.util.logging
  • java.util.prefs
  • java.util.regex
  • java.util.stream
  • java.util.zip
  • javax.crypto
  • javax.crypto.interfaces
  • javax.crypto.spec
  • javax.microedition.khronos.egl
  • javax.microedition.khronos.opengles
  • javax.net
  • javax.net.ssl
  • javax.security.auth
  • javax.security.auth.callback
  • javax.security.auth.login
  • javax.security.auth.x500
  • javax.security.cert
  • javax.sql
  • javax.xml
  • javax.xml.datatype
  • javax.xml.namespace
  • javax.xml.parsers
  • javax.xml.transform
  • javax.xml.transform.dom
  • javax.xml.transform.sax
  • javax.xml.transform.stream
  • javax.xml.validation
  • javax.xml.xpath
  • junit.framework
  • junit.runner
  • org.apache.http.conn
  • org.apache.http.conn.scheme
  • org.apache.http.conn.ssl
  • org.apache.http.params
  • org.json
  • org.w3c.dom
  • org.w3c.dom.ls
  • org.xml.sax
  • org.xml.sax.ext
  • org.xml.sax.helpers
  • org.xmlpull.v1
  • org.xmlpull.v1.sax2
  • Annotations

  • AnimatorRes
  • AnimRes
  • AnyRes
  • AnyThread
  • ArrayRes
  • AttrRes
  • BinderThread
  • BoolRes
  • CallSuper
  • CheckResult
  • ColorInt
  • ColorRes
  • DimenRes
  • Dimension
  • Dimension.Unit
  • DrawableRes
  • FloatRange
  • FractionRes
  • IdRes
  • IntDef
  • IntegerRes
  • InterpolatorRes
  • IntRange
  • LayoutRes
  • MainThread
  • MenuRes
  • NonNull
  • Nullable
  • PluralsRes
  • RawRes
  • RequiresApi
  • RequiresPermission
  • RequiresPermission.Read
  • RequiresPermission.Write
  • StringDef
  • StringRes
  • StyleableRes
  • StyleRes
  • TransitionRes
  • UiThread
  • VisibleForTesting
  • WorkerThread
  • XmlRes
  • @RequiresPermission(Manifest.permission.SET_WALLPAPER) public abstract void setWallpaper(Bitmap bitmap) throws IOException; @RequiresPermission(ACCESS_COARSE_LOCATION) public abstract Location getLastKnownLocation(String provider); Example of requiring at least one permission from a set: @RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public abstract Location getLastKnownLocation(String provider); Example of requiring multiple permissions: @RequiresPermission(allOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION}) public abstract Location getLastKnownLocation(String provider); Example of requiring separate read and write permissions for a content provider: @RequiresPermission.Read(@RequiresPermission(READ_HISTORY_BOOKMARKS)) @RequiresPermission.Write(@RequiresPermission(WRITE_HISTORY_BOOKMARKS)) public static final Uri BOOKMARKS_URI = Uri.parse("content://browser/bookmarks");

    在参数上指定时,注释表示该方法需要一个取决于参数值的权限。 例如,考虑 android.app.Activity.startActivity(android.content.Intent)

    public void startActivity(@RequiresPermission Intent intent) { ... }
     
    Notice how there are no actual permission names listed in the annotation. The actual permissions required will depend on the particular intent passed in. For example, the code may look like this:
    Intent intent = new Intent(Intent.ACTION_CALL);
       startActivity(intent);
     
    and the actual permission requirement for this particular intent is described on the Intent name itself: @RequiresPermission(Manifest.permission.CALL_PHONE) public static final String ACTION_CALL = "android.intent.action.CALL";

    Summary

    abstract int hashCode ()

    返回此注释的哈希码,如下定义:

    注释的哈希码是其成员(包括具有默认值的那些哈希码)的哈希码的总和,如下所定义:注释成员的哈希码是(由计算出的成员名的哈希码的127倍) hashCode() )XOR成员值的哈希码,如下定义:

    成员值的哈希码取决于其类型:

  • The hash code of a primitive value v is equal to WrapperType .valueOf( v ).hashCode() , where WrapperType is the wrapper type corresponding to the primitive type of v ( Byte , Character , Double , Float , Integer , Long , Short , or Boolean ).

  • abstract String toString ()

    返回此批注的字符串表示形式。