RestrictTo.Scope
public
static
final
enum
RestrictTo.Scope
extends Enum<RestrictTo.Scope>
java.lang.Object | ||
↳ | java.lang.Enum<android.support.annotation.RestrictTo.Scope> | |
↳ | android.support.annotation.RestrictTo.Scope |
Summary
Enum values | |
---|---|
RestrictTo.Scope |
GROUP_ID
This field is deprecated.
Use |
RestrictTo.Scope |
LIBRARY
Restrict usage to code within the same library (e.g. |
RestrictTo.Scope |
LIBRARY_GROUP
Restrict usage to code within the same group of libraries. |
RestrictTo.Scope |
SUBCLASSES
Restrict usage to subclasses of the enclosing class. |
RestrictTo.Scope |
TESTS
Restrict usage to tests. |
Public methods | |
---|---|
static
RestrictTo.Scope
|
valueOf(String name)
|
static
final
Scope[]
|
values()
|
Inherited methods | |
---|---|
From
class
java.lang.Enum
| |
From
class
java.lang.Object
| |
From
interface
java.lang.Comparable
|
Enum values
GROUP_ID
RestrictTo.Scope GROUP_ID
This field is deprecated.
Use LIBRARY_GROUP
instead
Restrict usage to code within the same group ID (based on gradle
group ID). This is an alias for LIBRARY_GROUP
.
LIBRARY
RestrictTo.Scope LIBRARY
Restrict usage to code within the same library (e.g. the same gradle group ID and artifact ID).
LIBRARY_GROUP
RestrictTo.Scope LIBRARY_GROUP
Restrict usage to code within the same group of libraries. This corresponds to the gradle group ID.
SUBCLASSES
RestrictTo.Scope SUBCLASSES
Restrict usage to subclasses of the enclosing class.
Note: This scope should not be used to annotate packages.
Public methods
Annotations
- AnimatorRes
- AnimRes
- AnyRes
- AnyThread
- ArrayRes
- AttrRes
- BinderThread
- BoolRes
- CallSuper
- CheckResult
- ColorInt
- ColorLong
- ColorRes
- DimenRes
- Dimension
- DrawableRes
- FloatRange
- FontRes
- FractionRes
- GuardedBy
- HalfFloat
- IdRes
- IntDef
- IntegerRes
- InterpolatorRes
- IntRange
- Keep
- LayoutRes
- LongDef
- MainThread
- MenuRes
- NavigationRes
- NonNull
- Nullable
- PluralsRes
- Px
- RawRes
- RequiresApi
- RequiresPermission
- RequiresPermission.Read
- RequiresPermission.Write
- RestrictTo
- Size
- StringDef
- StringRes
- StyleableRes
- StyleRes
- TransitionRes
- UiThread
- VisibleForTesting
- WorkerThread
- XmlRes
Enums
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.