Skip to Content

There are two types of Android APIs: platform APIs and unbundled library APIs. In platform APIs, intDefs are strongly preferred over enums. Enum values may cause Kotlin when statements to fail. R8 and Minfication help avoid this problem. However, R8 doesn’t affect platform API classes. Besides, the Android package hierarchy has an implicit ordering. Each …

Read More about What is the Use of Api in Android?