theta-client-react-native
Version:
This library provides a way to control RICOH THETA using.
21 lines • 750 B
TypeScript
import type { EmitterSubscription } from 'react-native';
import { NativeEventEmitter } from 'react-native';
export interface BaseNotify {
name: string;
params?: any;
}
export declare class NotifyController {
static _instance: NotifyController;
static get instance(): NotifyController;
eventEmitter?: NativeEventEmitter;
eventListener?: EmitterSubscription;
notifyList: Map<string, ((notify: BaseNotify) => void) | undefined>;
init(): void;
isInit(): boolean;
release(): void;
addNotify(name: string, callback: (notify: BaseNotify) => void): void;
removeNotify(name: string): void;
existsNotify(name: string): boolean;
private addNotifyListener;
}
//# sourceMappingURL=notify-controller.d.ts.map