• Converts implementation addContextListener parameters to those required by fdc3 addContextListener method

    Parameters

    • handlerOrContextType: null | ContextHandler | ContextType

      is either handler for context received on channel or type of context being listened for

    • OptionaloptionalContextHandler: ContextHandler

      is handler for context received on channel, depending on version of signature used

    Returns {
        contextHandler: ContextHandler;
        contextType: ContextType | null;
    }

    type of context that context listener will listen for, and handler that will be called when context of that type is received

    • contextHandler: ContextHandler
    • contextType: ContextType | null