public enum

LayoutElementProto.FontVariant

extends java.lang.Enum<LayoutElementProto.FontVariant>

 java.lang.Object

↳java.lang.Enum<LayoutElementProto.FontVariant>

↳androidx.wear.protolayout.proto.LayoutElementProto.FontVariant

Overview

 The variant of a font. Some renderers may use different fonts for title and
 body text, which can be selected using this field.
 
Protobuf enum androidx.wear.protolayout.proto.FontVariant

Summary

Enum Constants
FONT_VARIANT_BODY
 Font variant suited for body text.
FONT_VARIANT_CUSTOM_1
 Placeholder for a custom font variant in the renderer.
FONT_VARIANT_TITLE
 Font variant suited for title text.
FONT_VARIANT_UNDEFINED
 Font variant is undefined.
UNRECOGNIZED
Fields
public static final intFONT_VARIANT_BODY_VALUE

 Font variant suited for body text.

public static final intFONT_VARIANT_CUSTOM_1_VALUE

 Placeholder for a custom font variant in the renderer.

public static final intFONT_VARIANT_TITLE_VALUE

 Font variant suited for title text.

public static final intFONT_VARIANT_UNDEFINED_VALUE

 Font variant is undefined.

Methods
public static LayoutElementProto.FontVariantforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static LayoutElementProto.FontVariantvalueOf(int value)

public static LayoutElementProto.FontVariantvalueOf(java.lang.String name)

public static LayoutElementProto.FontVariantvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

FONT_VARIANT_UNDEFINED

 Font variant is undefined.
 
FONT_VARIANT_UNDEFINED = 0;

FONT_VARIANT_TITLE

 Font variant suited for title text.
 
FONT_VARIANT_TITLE = 1;

FONT_VARIANT_BODY

 Font variant suited for body text.
 
FONT_VARIANT_BODY = 2;

FONT_VARIANT_CUSTOM_1

 Placeholder for a custom font variant in the renderer.
 
FONT_VARIANT_CUSTOM_1 = 3;

UNRECOGNIZED

Fields

public static final int FONT_VARIANT_UNDEFINED_VALUE

 Font variant is undefined.
 
FONT_VARIANT_UNDEFINED = 0;

public static final int FONT_VARIANT_TITLE_VALUE

 Font variant suited for title text.
 
FONT_VARIANT_TITLE = 1;

public static final int FONT_VARIANT_BODY_VALUE

 Font variant suited for body text.
 
FONT_VARIANT_BODY = 2;

public static final int FONT_VARIANT_CUSTOM_1_VALUE

 Placeholder for a custom font variant in the renderer.
 
FONT_VARIANT_CUSTOM_1 = 3;

Methods

public static LayoutElementProto.FontVariant values()

public static LayoutElementProto.FontVariant valueOf(java.lang.String name)

public final int getNumber()

public static LayoutElementProto.FontVariant valueOf(int value)

Deprecated: Use LayoutElementProto.FontVariant.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static LayoutElementProto.FontVariant forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()