EventObject | API reference | Android Developers (original) (raw)
open class EventObject : Serializable
The root class from which all event state objects shall be derived.
All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.
Summary
Public constructors |
---|
EventObject(source: Any!) Constructs a prototypical Event. |
Public methods | |
---|---|
open Any! | getSource() The object on which the Event initially occurred. |
open String | toString() Returns a String representation of this EventObject. |
Properties | |
---|---|
Any! | source The object on which the Event initially occurred. |
Public constructors
EventObject
EventObject(source: Any!)
Constructs a prototypical Event.
Parameters | |
---|---|
source | Any!: the object on which the Event initially occurred |
Exceptions | |
---|---|
java.lang.IllegalArgumentException | if source is null |
Public methods
getSource
open fun getSource(): Any!
The object on which the Event initially occurred.
Return | |
---|---|
Any! | the object on which the Event initially occurred |
toString
open fun toString(): String
Returns a String representation of this EventObject.
Return | |
---|---|
String | a String representation of this EventObject |
Properties
source
protected var source: Any!
The object on which the Event initially occurred.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.