Mono for Android preprocessor macros

我只是一个虾纸丫 提交于 2019-12-06 03:31:09

问题


Is there an Android preprocessor macros that Mono for Android defines?

I mean very useful things for cross-platform development like:

#if WINDOWS...#endif 

and

#if WINDOWS_PHONE...#endif

回答1:


__ANDROID__

and additionally for each Android API Level:

__ANDROID_4__;__ANDROID_7__;__ANDROID_8__;etc


来源:https://stackoverflow.com/questions/7917859/mono-for-android-preprocessor-macros

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!