lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

RelativeDateTimeFormatter.Style

public static final enum RelativeDateTimeFormatter.Style
extends Enum<RelativeDateTimeFormatter.Style>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.RelativeDateTimeFormatter.Style>
     ↳ android.icu.text.RelativeDateTimeFormatter.Style


The formatting style

Summary

Enum values

RelativeDateTimeFormatter.Style  LONG

Everything spelled out. 

RelativeDateTimeFormatter.Style  NARROW

Use single letters when possible. 

RelativeDateTimeFormatter.Style  SHORT

Abbreviations used when possible. 

Public methods

static RelativeDateTimeFormatter.Style valueOf(String name)
static final Style[] values()

Inherited methods

Enum values

LONG

added in API level 24
public static final RelativeDateTimeFormatter.Style LONG

Everything spelled out.

NARROW

added in API level 24
public static final RelativeDateTimeFormatter.Style NARROW

Use single letters when possible.

SHORT

added in API level 24
public static final RelativeDateTimeFormatter.Style SHORT

Abbreviations used when possible.

Public methods

valueOf

added in API level 24
public static RelativeDateTimeFormatter.Style valueOf (String name)

Parameters
name String

Returns
RelativeDateTimeFormatter.Style

values

added in API level 24
public static final Style[] values ()

Returns
Style[]