-1

I've seen so many examples of receiving call back from adapter but the calling class were Activity or Fragment, but now I have an activity which calls ClassA you say and ClassA calls the adapter and I need the call back to be used in ClassA and not in the Activity,

I've seen so many examples of Activity or Fragment but not a class of other types:
Callback from Adapter
or
How to return a callback from Adapter to Fragment class

AndroidHV
  • 369
  • 1
  • 9
  • 1
    And what's your question specifically? Did you expect an `Activity` or a `Fragment`? Or what did you expect? And could you please provide a _[Minimal, Complete and Verifiable Example](https://stackoverflow.com/help/mcve)_? – Edric Dec 22 '18 at 15:14
  • Callback's are basic functionality which are triggered when a event occurs doesn't matter which class or type of class called triggered. Your question is not clear what you want to ask! – Anmol Dec 22 '18 at 15:38
  • 1
    @Anmol I can accept your comment as accepted answer, I was looking for the difference while as you said, there is no difference, Thanks – AndroidHV Dec 23 '18 at 05:46

1 Answers1

0

Callback's are basic functionality which are triggered when an event occurs doesn't matter which class or type of class called triggered it.

Here's a really good tutorial on Callback

Anmol
  • 8,110
  • 9
  • 38
  • 63