@ua/react-native-airship
Version:
Airship plugin for React Native apps.
27 lines • 691 B
TypeScript
/**
* SDK event emitter.
*
* @hidden
*/
export declare class UAEventEmitter {
private readonly nativeModule;
private eventEmitter;
private listeners;
constructor(nativeModule: any);
removeListener(eventType: string, listener: (...args: any[]) => any): void;
addListener(eventType: string, listener: (...args: any[]) => any): void;
removeAllListeners(eventType: string): void;
private dispatchEvents;
}
/**
* A listener subscription.
*/
export declare class Subscription {
private readonly onRemove;
constructor(onRemove: () => void);
/**
* Removes the listener.
*/
remove(): void;
}
//# sourceMappingURL=UAEventEmitter.d.ts.map