Class FontConfiguration

    • Method Detail

      • fontSize

        public final FontSize fontSize()

        The option that determines the text display size.

        Returns:
        The option that determines the text display size.
      • fontColor

        public final String fontColor()

        Determines the color of the text.

        Returns:
        Determines the color of the text.
      • fontWeight

        public final FontWeight fontWeight()

        The option that determines the text display weight, or boldness.

        Returns:
        The option that determines the text display weight, or boldness.
      • fontStyle

        public final FontStyle fontStyle()

        Determines the text display face that is inherited by the given font family.

        If the service returns an enum value that is not available in the current SDK version, fontStyle will return FontStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontStyleAsString().

        Returns:
        Determines the text display face that is inherited by the given font family.
        See Also:
        FontStyle
      • fontStyleAsString

        public final String fontStyleAsString()

        Determines the text display face that is inherited by the given font family.

        If the service returns an enum value that is not available in the current SDK version, fontStyle will return FontStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontStyleAsString().

        Returns:
        Determines the text display face that is inherited by the given font family.
        See Also:
        FontStyle
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)