StringDef
  public
  
  
  abstract
  @interface
  StringDef
  
  
      implements
      
        Annotation
      
  
  
| android.support.annotation.StringDef | 
Denotes that the annotated String element, represents a logical type and that its value should be one of the explicitly named constants.
Example:
  @Retention(SOURCE)
  @StringDef({
     POWER_SERVICE,
     WINDOW_SERVICE,
     LAYOUT_INFLATER_SERVICE
  })
  public @interface ServiceName {}
  public static final String POWER_SERVICE = "power";
  public static final String WINDOW_SERVICE = "window";
  public static final String LAYOUT_INFLATER_SERVICE = "layout_inflater";
  ...
  public abstract Object getSystemService(@ServiceName String name);
 Summary
Public methods | |
|---|---|
        
        
        
        
        
        String[]
     | 
  
    
      
      value()
      
      
        Defines the allowed constants for this element  | 
  
Inherited methods | |
|---|---|
  
    
  
    java.lang.annotation.Annotation
  
 | |
Public methods
value
String[] value ()
Defines the allowed constants for this element
| Returns | |
|---|---|
String[] | 
        |
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