C# では内部的に enum は int として扱っているので
GetStatic<int>()
で取得できそうですが、これではエラーになり取得できません
そのため enum を取得する場合は GetStatic<AndroidJavaObject>()
を利用します
使い方
TimeZoneFormat.Style
を取得する場合は以下のように記述して enum を取得します
https://developer.android.com/reference/android/icu/text/TimeZoneFormat.Style.html?hl=da
using (var timeZoneFormat = new AndroidJavaClass("android.icu.text.TimeZoneFormat$Style")) { var style = timeZoneFormat.GetStatic<AndroidJavaObject>("LOCALIZED_GMT"); }