expect val KClass<*>.fullName: String
(source)
The full name of this KClass.
The full name consists of the class name and, depending on the platform, additional information such as the package name.
Similar to KClass.qualifiedName but returns String
and not String?
which means it also returns a name
for anonymous classes (in which case KClass.qualifiedName returns null
).
expect fun <T : Any> KClass<out T>.fullName(obj: T): String
(source)
Returns the full name of this KClass.
The full name consists of the class name and, depending on the platform, additional information such as the package name.
obj can be used to retrieve more information
Similar to KClass.qualifiedName but returns also names for anonymous classes
(in which case KClass.qualifiedName returns null
).
obj
- The object from which this KClass was created of.
Return
The full name of this KClass.