bigbluebutton-tablet-sdk/ios/ReactExported/ReactNativeEventEmitter.swift

41 lines
1.3 KiB
Swift
Raw Normal View History

//
// ReactNativeEventEmitter.swift
//
// Created by Tiago Daniel Jacobs on 11/03/22.
//
import Foundation
import React
@objc(ReactNativeEventEmitter)
open class ReactNativeEventEmitter: RCTEventEmitter {
public static var emitter: RCTEventEmitter!
public enum EVENT: String, CaseIterable {
case onBroadcastRequested = "onBroadcastRequested"
case onBroadcastStarted = "onBroadcastStarted"
case onBroadcastPaused = "onBroadcastPaused"
case onBroadcastResumed = "onBroadcastResumed"
case onBroadcastFinished = "onBroadcastFinished"
case onScreenShareOfferCreated = "onScreenShareOfferCreated"
2022-03-28 02:05:47 +08:00
case onSetScreenShareRemoteSDPCompleted = "onSetScreenShareRemoteSDPCompleted"
2022-03-28 09:18:34 +08:00
case onScreenShareLocalIceCandidate = "onScreenShareLocalIceCandidate"
case onScreenShareSignalingStateChange = "onScreenShareSignalingStateChange"
2022-03-30 01:57:03 +08:00
case onAddScreenShareRemoteIceCandidateCompleted = "onAddScreenShareRemoteIceCandidateCompleted"
}
override init() {
super.init()
ReactNativeEventEmitter.emitter = self
}
open override func supportedEvents() -> [String] {
EVENT.allCases.map { $0.rawValue }
}
@objc open override class func requiresMainQueueSetup() -> Bool {
return false
}
}