SignInActivity@ this is just another expression for this , with the functionality of defining an unnecessary label called SignInActivity (which has nothing to do with the actual class name) for this .
According to the Kotlin Grammar Documentation :
labelReference (used by atomicExpression, jump) : "@" ++ LabelName ; labelDefinition (used by prefixUnaryOperation, annotatedLambda) : LabelName ++ "@" ;
hello@ is just a label named "hello" (for Returns and Transitions ),
whereas @hello is a reference for a marked loop or block.
These combined expressions can be used as shown below:
loop@ for (i in 1..100) { for (j in 1..100) { if (...) break@loop //jump to loop@ } }
source share