Create android plugin in unity?

I need to create a plugin that can detect if the night mode of the cell phone is activated, I already try everything but I did not achieve anything, someone has an idea of ​​how I could create this plugin, I would appreciate it