Description

Represents the functionality every wrapper should provide.

Index

core/abstraction/base/i-google-maps-native-object-wrapper.ts

Properties
Methods

Methods

setCustom
setCustom(custom: any)

Sets custom data on the wrapper. Defined for compatability with delegation mechanism.

Parameters:
Name Type Optional Description
custom any No

Any data related to the object (e.g. id, business model data, etc.).

Returns: void

Properties

custom
custom: any
Type: any

A place to store any data related to the object (e.g. id, business model data, etc.). Might be usefull for identifying the object within collections and events.

native
native: TNative
Type: TNative

Returns the native object wrapped in the current object.

import { IGoogleMapsNativeObject } from '../native/i-google-maps-native-object';

/**
 * Represents the functionality every wrapper should provide.
 *
 * @export
 * @interface IGoogleMapsNativeObjectWrapper
 * @template TNative The type of native object being wrapped.
 */
export interface IGoogleMapsNativeObjectWrapper<TNative extends IGoogleMapsNativeObject>
{
    /** Returns the native object wrapped in the current object. */
    readonly native: TNative;
    /**
     * A place to store any data related to the object (e.g. id, business model data, etc.).
     * Might be usefull for identifying the object within collections and events.
     */
    custom: any;

    /**
     * Sets custom data on the wrapper. Defined for compatability with delegation mechanism.
     *
     * @param {*} custom Any data related to the object (e.g. id, business model data, etc.).
     */
    setCustom(custom: any): void;
}

results matching ""

    No results matching ""