If you want to add additional code segments to the Kotlin primary constructor then you have to use the Initializer block for the primary constructor.
Like my Facebook page : / codeglympse
Subscribe My YouTube channel : / ticoontechnologies