Class EventEmitterUtil


  • public final class EventEmitterUtil
    extends java.lang.Object
    An utility class to emit common events in the Brightcove SDK.
    • Constructor Detail

      • EventEmitterUtil

        public EventEmitterUtil()
    • Method Detail

      • emitError

        public static void emitError​(EventEmitter eventEmitter,
                                     java.lang.String message,
                                     java.lang.Exception exception)
        Emits an EventType.ERROR event with a BrightcoveError.MESSAGE property.
        Parameters:
        eventEmitter - The SDK event emitter object.
        message - the message
        exception - the exception
      • emitError

        public static void emitError​(EventEmitter eventEmitter,
                                     java.lang.String message)
        Emits an EventType.ERROR event with a BrightcoveError.MESSAGE property.
        Parameters:
        eventEmitter - The SDK event emitter object.
        message - the message