isClassExists

Check whether a class exists, and do your action when it's return true.

Return

true if the class exists

Parameters

className

class name with its package, e.g. android.content.Intent

open fun isClassExists(className: String): Boolean