Define your nested class as inner then you will be able to access an outer class member variable.
class OuterClass{
var accessMe ="access me from Inner Class"
inner class InnerClass{
//....
fun accessingOuterClassVariable(){
accessMe = "Now the variable is accessed"
}
}
}