Stay organized with collections
Save and categorize content based on your preferences.
Direction
class Direction
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday"
Summary
Enum values |
Last
|
Two before.
|
Next
|
Two after.
|
Plain, which means the absence of a qualifier
|
This
|
Enum values
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RelativeDateTimeFormatter.Direction\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDirection\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/RelativeDateTimeFormatter.Direction \"View this page in Java\") \n\n```\nclass Direction\n```\n\n|---|---|-----------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.RelativeDateTimeFormatter.Direction](#)\\\u003e ||\n| | ↳ | [android.icu.text.RelativeDateTimeFormatter.Direction](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [RelativeDateTimeFormatter.Direction.LAST](#ENUM_VALUE:LAST), [RelativeDateTimeFormatter.Direction.LAST_2](#ENUM_VALUE:LAST_2), [RelativeDateTimeFormatter.Direction.NEXT](#ENUM_VALUE:NEXT), [RelativeDateTimeFormatter.Direction.NEXT_2](#ENUM_VALUE:NEXT_2), [RelativeDateTimeFormatter.Direction.PLAIN](#ENUM_VALUE:PLAIN), [RelativeDateTimeFormatter.Direction.THIS](#ENUM_VALUE:THIS) |------------------------------------------------------------------|-----------------------------------------------| | [RelativeDateTimeFormatter.Direction.LAST](#ENUM_VALUE:LAST) | Last | | [RelativeDateTimeFormatter.Direction.LAST_2](#ENUM_VALUE:LAST_2) | Two before. | | [RelativeDateTimeFormatter.Direction.NEXT](#ENUM_VALUE:NEXT) | Next | | [RelativeDateTimeFormatter.Direction.NEXT_2](#ENUM_VALUE:NEXT_2) | Two after. | | [RelativeDateTimeFormatter.Direction.PLAIN](#ENUM_VALUE:PLAIN) | Plain, which means the absence of a qualifier | | [RelativeDateTimeFormatter.Direction.THIS](#ENUM_VALUE:THIS) | This | |\n\nRepresents a direction for an absolute unit e.g \"Next Tuesday\" or \"Last Tuesday\"\n\nSummary\n-------\n\n| Enum values ||\n|--------------------------------------------------------------------------|---|\n| [LAST](#ENUM_VALUE:LAST) Last |\n| [LAST_2](#ENUM_VALUE:LAST_2) Two before. |\n| [NEXT](#ENUM_VALUE:NEXT) Next |\n| [NEXT_2](#ENUM_VALUE:NEXT_2) Two after. |\n| [PLAIN](#ENUM_VALUE:PLAIN) Plain, which means the absence of a qualifier |\n| [THIS](#ENUM_VALUE:THIS) This |\n\nEnum values\n-----------\n\n### LAST\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LAST : RelativeDateTimeFormatter.Direction\n```\n\nLast \n\n### LAST_2\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LAST_2 : RelativeDateTimeFormatter.Direction\n```\n\nTwo before. Not fully supported in every locale \n\n### NEXT\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NEXT : RelativeDateTimeFormatter.Direction\n```\n\nNext \n\n### NEXT_2\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NEXT_2 : RelativeDateTimeFormatter.Direction\n```\n\nTwo after. Not fully supported in every locale \n\n### PLAIN\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PLAIN : RelativeDateTimeFormatter.Direction\n```\n\nPlain, which means the absence of a qualifier \n\n### THIS\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val THIS : RelativeDateTimeFormatter.Direction\n```\n\nThis"]]