added in version 1.0.0
belongs to Maven artifact androidx.annotation:annotation:1.0.0-beta01

RestrictTo.Scope

public static final enum RestrictTo.Scope
extends Enum<RestrictTo.Scope>

java.lang.Object
   ↳ java.lang.Enum<androidx.annotation.RestrictTo.Scope>
     ↳ androidx.annotation.RestrictTo.Scope


Summary

Enum values

RestrictTo.Scope  GROUP_ID

This field is deprecated. Use LIBRARY_GROUP instead  

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

Enum values

GROUP_ID

added in version 1.0.0
public static final 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

added in version 1.0.0
public static final RestrictTo.Scope LIBRARY

Restrict usage to code within the same library (e.g. the same gradle group ID and artifact ID).

LIBRARY_GROUP

added in version 1.0.0
public static final RestrictTo.Scope LIBRARY_GROUP

Restrict usage to code within the same group of libraries. This corresponds to the gradle group ID.

SUBCLASSES

added in version 1.0.0
public static final RestrictTo.Scope SUBCLASSES

Restrict usage to subclasses of the enclosing class.

Note: This scope should not be used to annotate packages.

TESTS

added in version 1.0.0
public static final RestrictTo.Scope TESTS

Restrict usage to tests.

Public methods

valueOf

added in version 1.0.0
public static RestrictTo.Scope valueOf (String name)

Parameters
name String

Returns
RestrictTo.Scope

values

added in version 1.0.0
public static final Scope[] values ()

Returns
Scope[]