PlatformClass

actual class PlatformClass<T : PureeLog>

Android implementation of the platform-specific class wrapper for PureeLog types.

This implementation uses Kotlin's reflection API (KClass) to represent log types in Android. It retrieves the simple name of the class using KClass.simpleName to provide the class name for log type identification.

Parameters

T

The type of PureeLog this class represents

kClass

The Kotlin class reference for the log type

expect class PlatformClass<T : PureeLog>

Platform-specific class wrapper for PureeLog types.

This class provides a common interface for platform-specific class references, allowing the logging system to work with class information in a platform-independent way. Each platform (Android, iOS) implements this class differently to handle its specific class reference mechanism.

Parameters

T

The type of PureeLog this class represents

actual class PlatformClass<T : PureeLog>

iOS implementation of the platform-specific class wrapper for PureeLog types.

This implementation uses Objective-C class references (ObjCClass) to represent log types in iOS. It converts the Objective-C class to a string using NSStringFromClass to provide the class name for log type identification.

Parameters

T

The type of PureeLog this class represents

clazz

The Objective-C class reference for the log type

Constructors

Link copied to clipboard
constructor(kClass: KClass<T>)
constructor(clazz: ObjCClass)

Properties

Link copied to clipboard
Link copied to clipboard
actual val simpleName: String

The simple name of the Kotlin class, or an empty string if null

expect val simpleName: String

The simple name of the class, used for log type identification

actual val simpleName: String

The string representation of the Objective-C class name