nativescript-opentok
Version:
Integrates OpenTok for NativeScript.
21 lines (20 loc) • 703 B
TypeScript
import { Observable } from 'tns-core-modules/data/observable';
import { TNSOTSubscriber } from "./subscriber";
export declare class TNSOTSession {
private apiKey;
private config;
session: any;
publisher: any;
private _sessionEvents;
private options;
private _subscriber;
static initWithApiKeySessionId(apiKey: string, sessionId: string): TNSOTSession;
static requestPermission(): any;
connect(token: string): Promise<any>;
disconnect(): Promise<any>;
sendSignal(type: string, message: string): Promise<any>;
subscribe(subInstance: any): void;
readonly sessionEvents: Observable;
readonly events: Observable;
subscriber: TNSOTSubscriber;
}