What’s the best practice to pass member of the cla...
# announcements
j
What’s the best practice to pass member of the class to
object
Copy code
private val processor = DeeplinkProcessor()

    object branchListener : Branch.BranchReferralInitListener {
        override fun onInitFinished(referringParams: JSONObject?, error: BranchError?) {
            processor.process(referringParams)
        }
    }
in that case, I can’t access
processor
from object
BranchReferralInitListener
d
Copy code
val branchListener = object : Branch.BranchReferralInitListener {
        override fun onInitFinished(referringParams: JSONObject?, error: BranchError?) {
            processor.process(referringParams)
        }
    }
j
Brilliant! Thank you 🙂