FeatureEvents

fun FeatureEvents(enabled: Boolean, eventType: String)

Parameters

enabled

A boolean value that indicates whether the feature is being enabled or disabled.

eventType

A string value representing the type of messaging settings feature being changed.

init

This is a block of code that is executed when an object of the class is created. In this case, it sets the type property of the STWEvent base class to the eventType parameter that is passed in.