-
Notifications
You must be signed in to change notification settings - Fork 2
/
OpenTokPlugin.h
43 lines (34 loc) · 1.82 KB
/
OpenTokPlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// OpentokPlugin.h
// opentokTest
//
// Created by Song Zheng on 4/19/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
#import <UIKit/UIKit.h>
#import <Opentok/Opentok.h>
@interface OpenTokPlugin : CDVPlugin <OTSessionDelegate, OTPublisherDelegate, OTSubscriberDelegate>
@property(nonatomic, copy) NSString* callbackID;
@property(nonatomic, copy) NSString* streamCreatedId;
@property(nonatomic, copy) NSString* streamDisconnectedId;
@property(nonatomic, copy) NSString* sessionDisconnectedId;
@property(nonatomic, copy) NSString* exceptionId;
// Tokbox Library Functions
-(void)initSession:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void)initPublisher:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-(void)streamCreatedHandler:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-(void)connect:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-(void)disconnect:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void)publish:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void)unpublish:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void)subscribe:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void)unsubscribe:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
// Listeners
-(void)streamDisconnectedHandler:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-(void)sessionDisconnectedHandler:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-(void)exceptionHandler:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
// HouseKeeping
- (void)updateView:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end