<how can i access global variables in fragment in ...
# stackoverflow
u
how can i access global variables in fragment in kotlin language? actually what is the wrong in my code. globally "currentUserStatus" variable shows null. anyway i am new for android kotlin. below my details .... class SentMessageFragment : Fragment() { private var currentUserStatus: String? = null private var firebaseUser: FirebaseUser? = null override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { // Inflate the layout for this fragment var view =...