On Android and iOS this returns 1 if the operating system is set to use a dark theme, you can use this to switch to a dark theme in your app. On other platforms this will always return 0.
integer IsDarkTheme()
int agk::IsDarkTheme()