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

38 lines
1.0 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"
}
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
}
}