Android SDK Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NativeAdBase.NativeComponentTag>
Enclosing class:

public static enum NativeAdBase.NativeComponentTag
extends java.lang.Enum<NativeAdBase.NativeComponentTag>
Optional tags for native ad view components. Use with NativeComponentTag.tagView(view, tag)
Since:
4.28
Method Summary
Modifier and TypeMethod and Description
static voidtagView(View view, NativeAdBase.NativeComponentTag tag) 
static NativeAdBase.NativeComponentTagvalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static NativeAdBase.NativeComponentTag[]values()
Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail

AD_ICON

public static final NativeAdBase.NativeComponentTag AD_ICON

AD_TITLE

public static final NativeAdBase.NativeComponentTag AD_TITLE

AD_COVER_IMAGE

public static final NativeAdBase.NativeComponentTag AD_COVER_IMAGE

AD_SUBTITLE

public static final NativeAdBase.NativeComponentTag AD_SUBTITLE

AD_BODY

public static final NativeAdBase.NativeComponentTag AD_BODY

AD_CALL_TO_ACTION

public static final NativeAdBase.NativeComponentTag AD_CALL_TO_ACTION

AD_SOCIAL_CONTEXT

public static final NativeAdBase.NativeComponentTag AD_SOCIAL_CONTEXT

AD_CHOICES_ICON

public static final NativeAdBase.NativeComponentTag AD_CHOICES_ICON

AD_OPTIONS_VIEW

public static final NativeAdBase.NativeComponentTag AD_OPTIONS_VIEW

AD_MEDIA

public static final NativeAdBase.NativeComponentTag AD_MEDIA
Method Detail

values

public static NativeAdBase.NativeComponentTag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NativeAdBase.NativeComponentTag c : NativeAdBase.NativeComponentTag.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NativeAdBase.NativeComponentTag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

tagView

public static void tagView(View view,
                           NativeAdBase.NativeComponentTag tag)