cloudroam
2025-04-02 f4a4110d5ebd74cccd38eea6cdeed0bd96d80c5e
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
}