getFormattedName

actual fun KClass<*>.getFormattedName(format: NameFormat): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.

expect fun KClass<*>.getFormattedName(format: NameFormat = NameFormat.QUALIFIED): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.

actual fun KClass<*>.getFormattedName(format: NameFormat): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.

actual fun KClass<*>.getFormattedName(format: NameFormat): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.

actual fun KClass<*>.getFormattedName(format: NameFormat): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.

actual fun KClass<*>.getFormattedName(format: NameFormat): String?

Provides the class name in a specified format. The format parameter allows for different naming conventions, including fully qualified names, simple names, and platform-specific formats.

Return

The class name as a String in the specified format, or null if the name cannot be determined.

Parameters

format

Specifies the format for the class name. Defaults to NameFormat.QUALIFIED.