Top "Listener" questions

An object that reacts to an event that it is 'listening' for.

Android Custom Event Listener

Say I want to make my own event listener for my class, how do I do that? Do I need …

android events mobile listener
Android: two Spinner onItemSelected()

I have two spinners (day_spin and time_spin) in one Activity. I want to save the selected day_spin …

android spinner listener android-spinner
Add multiple window.onload events

In my ASP.NET User Control I'm adding some JavaScript to the window.onload event: if (!Page.ClientScript.IsStartupScriptRegistered(this.…

javascript asp.net events listener
How I can use callback in Kotlin?

I have View and one CircleShape , which should show toast in this View. And I use it in main Activity. …

java android xml kotlin listener
Removing event listener which was added with bind

In JavaScript, what is the best way to remove a function added as an event listener using bind()? Example (function(){ // …

javascript events listener bind
How to create custom Listeners in java?

I want to know about how to set our own Listeners in java.For example I have a function that …

java interface listener observer-pattern
Observer Design Pattern vs "Listeners"

It seems to me that the Observer design pattern as described in GOF is really the same thing as Listeners …

design-patterns language-agnostic listener observer-pattern
Android: Listening for variable changes

I've been searching for a KISS example of how to do this, and while they all seem (and I've gone …

android variables interface listener
How do I start an Intent from an OnClickListener

My Main Activity extends ListActivity and displays a List. I am using custom Listitems defined in a class named DefinitionAdapter. …

android android-intent listener listactivity
How do I pass the value (not the reference) of a JS variable to a function?

Here is a simplified version of something I'm trying to run: for (var i = 0; i < results.length; i++) { marker = …

javascript closures pass-by-reference listener pass-by-value