-
Notifications
You must be signed in to change notification settings - Fork 29
/
IOpenTokService.cs
55 lines (33 loc) · 1.35 KB
/
IOpenTokService.cs
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Collections.Specialized;
namespace Xamarin.Forms.OpenTok.Service
{
public interface IOpenTokService : INotifyPropertyChanged
{
event Action<string> Error;
event Action<string> MessageReceived;
event NotifyCollectionChangedEventHandler StreamIdCollectionChanged;
ReadOnlyObservableCollection<string> StreamIdCollection { get; }
OpenTokPermission Permissions { get; set; }
OpenTokPublisherVideoType PublisherVideoType { get; set; }
OpenTokVideoScaleStyle PublisherVideoScaleStyle { get; set; }
OpenTokVideoScaleStyle SubscriberVideoScaleStyle { get; set; }
bool IsVideoPublishingEnabled { get; set; }
bool IsAudioPublishingEnabled { get; set; }
bool IsVideoSubscriptionEnabled { get; set; }
bool IsAudioSubscriptionEnabled { get; set; }
string ApiKey { get; set; }
string SessionId { get; set; }
string UserToken { get; set; }
bool IsSessionStarted { get; set; }
bool IsPublishingStarted { get; set; }
bool CheckPermissions();
bool TryStartSession();
void EndSession();
void CycleCamera();
Task<bool> SendMessageAsync(string message);
}
}