Mion

Watch out of the usage of the Kotlin initializer block | through André Mion

For the ones no longer accustomed to Kotlin, the initializer block is used to: …run some code all through object introduction… For instance, if I need to print to the console every time a brand new object is instantiated, I must do one thing like this: elegance JobListViewModel {init {println(“There’s a new example of JobListViewModel”)}} […]

Watch out of the usage of the Kotlin initializer block | through André Mion Read More »

Leveraging Key-Price Looking at (KVO) in Kotlin Multiplatform (KMP) for iOS | through André Mion | Mar, 2024

The KMP plugin supplies a DSL to outline a customized definition report the place we will claim our Purpose-C protocol (interface) to be to be had within the Kotlin iOS supply set. package deal = platform.basislanguage = Purpose-C—#import <Basis/Basis.h>@protocol NSKeyValueObserving@required- (void) observeValueForKeyPath:(NSString *)keyPathofObject:(identity)objectexchange:(NSDictionary<NSKeyValueChangeKey, identity> *)exchangecontext:(void *)context;@finish; Outline the interoperability the use of the KMP plugin

Leveraging Key-Price Looking at (KVO) in Kotlin Multiplatform (KMP) for iOS | through André Mion | Mar, 2024 Read More »

Don’t combine object configuration with object movements | by means of André Mion | Dec, 2023

For the ones no longer acquainted with Kotlin, the initializer block is used to: …run some code right through object introduction… For instance, if I need to print to the console each time a brand new object is instantiated, I will have to do one thing like this: elegance MyAwesomeClass {init {println(“There’s a new example

Don’t combine object configuration with object movements | by means of André Mion | Dec, 2023 Read More »

Scroll to Top