CompassDirectionFormatter
The CompassDirectionFormatter
class provides properly formatted
descriptions of absolute compass directions. For example, a value of 90
may
be formatted as “east”, depending on the locale.
-
See moreStyle
is used to configure how aCompassDirectionFormatter
translates a compass direction into aString
. -
The
Style
used by this formatter. Defaults toStyle.long
. -
Creates a new
CompassDirectionFormatter
instance -
Returns a localized string describing the provided compass direction.