hasClass

fun String.hasClass(loader: ClassLoader? = appClassLoader): Boolean

Deprecated

YukiHookAPI will completely remove the API of its own reflection part in version 2.0.0. We recommend that you use KavaRef to implement reflection for better performance and maintainability. See: https://github.com/HighCapable/KavaRef

Checks whether a string class name exists.

Return

Boolean whether the class exists.

Parameters

loader

the ClassLoader containing the Class. The default is appClassLoader.


Deprecated

Use the new naming method

Replace with

hasClass()

Checks whether a string class name exists.

  • This API is deprecated and will be removed in a future version.

  • Migrate to hasClass.

Return

Boolean whether the class exists.