cloudroam
2025-03-13 c6adb1c42a76001de0978e99f73cd6f5678c685e
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.example.firstapp.ui.notifications
 
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
 
class NotificationsViewModel : ViewModel() {
 
    private val _text = MutableLiveData<String>().apply {
        value = "This is notifications Fragment"
    }
    val text: LiveData<String> = _text
}