I am new to Android Development and Kotlin
I notice this function? setContent { } , I want to know what is this block. is it a function !? why it is invoked with curly braces.
the code is bellow
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Text("Hello world!")
}
}
}
thanks in advanc