Missing line

Report a typo

Write the missing line of code that is needed for the receiver to work correctly.

val receiver: BroadcastReceiver = YourBroadcastReceiver()
val filter = IntentFilter().apply {
    addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED)
    addAction(Intent.ACTION_DATE_CHANGED)
}

// Something is missing here
Enter a short text
___

Create a free account to access the full topic