isRTL

fun isRTL(context: Context): Boolean

Check if the device is currently running on an RTL locale. This only happens when the app:

  • is forcing RTL layout, regardless of the active language (for development purpose)

  • allows RTL layout when using RTL locale