Represents the data every map event provides.
core/abstraction/events/i-google-maps-event-data.ts
Properties |
args |
args:
|
Type: any
|
A transformed version of the native arguments provided in the native event. Cleaner, easier to use. |
eventName |
eventName:
|
Type: string
|
The name of the triggered event. |
nativeArgs |
nativeArgs:
|
Type: any
|
The native arguments provided in the native event. |
nativeEmitter |
nativeEmitter:
|
Type: IGoogleMapsNativeObject
|
The native object which actually emitted the event. |
import { IGoogleMapsNativeObjectEmittingWrapper } from '../base/i-google-maps-native-object-emitting-wrapper';
import { IGoogleMapsNativeObject } from '../native/i-google-maps-native-object';
/**
* Represents the data every map event provides.
*
* @export
* @interface IGoogleMapsEventData
*/
export interface IGoogleMapsEventData
{
/** The name of the triggered event. */
eventName: string;
/**
* The wrapper which actually emitted the event. If the component was hooked to its own inner wrapper's events, this will be the inner wrapper.
* If a component was hooked to events of another wrapper, this will be the other wrapper. In case you need access only to the component's inner wrapper,
* use `associatedEmitter` instead.
*/
emitter: IGoogleMapsNativeObjectEmittingWrapper<IGoogleMapsNativeObject>;
/** The native object which actually emitted the event. */
nativeEmitter: IGoogleMapsNativeObject;
/** A transformed version of the native arguments provided in the native event. Cleaner, easier to use. */
args: any;
/** The native arguments provided in the native event. */
nativeArgs: any;
/** The wrapper this event is related to. This is always the inner wrapper of the hooked component. */
associatedEmitter: IGoogleMapsNativeObjectEmittingWrapper<IGoogleMapsNativeObject>;
}