wdpapi
Version:
51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on
50 lines (49 loc) • 1.02 kB
TypeScript
interface listenerType {
callback: any;
guid?: string;
time?: number;
}
/**
* @public
* @class CallbackListener
*/
export declare class CallbackListener {
private listeners;
private static instance;
/**
* @static
* @public
* @function getInstance
* @returns {CallbackListener}
*/
static getInstance(): CallbackListener;
/**
* @public
* @function findListener
* @param {string} guid
* @returns {listenerType}
*/
findListener(guid: string): listenerType;
/**
* @public
* @function addListener
* @param {listenerType} listener
* @returns {string}
*/
addListener(listener: listenerType): string;
/**
* @public
* @function removeListener
* @param {string} guid
* @returns {void}
*/
removeListener(guid: string): void;
/**
* @private
* @function randomString
* @param {number} e
* @returns {string}
*/
private randomString;
}
export {};