How to get Activity->Map Settings->Dark Mode setting? (in Data Field App)

How to get Activity->Map Settings->Dark Mode setting? In a Data Field App?

It can be On, Off, Auto. Depending on this setting, for data fields on top of a map on AMOLED devices, one has to use change color for the data to be displayed for it to be readable. E.g. white if Dark mode and Black if not Dark mode. 

I have tested the GetBackgroundColor() for a data field shown on top of a map, but that value does not change as this setting changes.

Anything I have missed?