doc / ch.tutteli.atrium.core.polyfills / kotlin.reflect.KClass / fullName

fullName

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).

Parameters

obj - The object from which this KClass was created of.

Return
The full name of this KClass.