This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.Subscriber; | |
| import rx.schedulers.Schedulers; | |
| public class DebounceBuffer { | |
| public static void main(String args[]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ExampleFragment : Fragment() { | |
| // this is the instance of our parent activity's interface that we define here | |
| private var mListener: OnFragmentInteractionListener? = null | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| } | |
| fun onButtonPressed(uri: Uri) { | |
| if (mListener != null) { | |
| mListener!!.onFragmentInteraction(uri) |
OlderNewer