1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Android: Support for base color retrieval

This commit is contained in:
Anish Mishra
2024-12-09 17:55:42 +05:30
parent 1f47e4c4e3
commit 70b24c3d16
6 changed files with 38 additions and 7 deletions

View File

@@ -933,6 +933,13 @@ class Godot(private val context: Context) {
return value.data
}
@Keep
private fun getBaseColor(): Int {
val value = TypedValue()
context.theme.resolveAttribute(android.R.attr.colorBackground, value, true)
return value.data
}
/**
* Destroys the Godot Engine and kill the process it's running in.
*/