Tutorial: interop.fireIntentForContext

interop.fireIntentForContext

Sends a Context that will be resolved to an Intent by the Interop Broker. To resolve this info, the function handleFiredIntentByContext is meant to be overridden in the Interop Broker. The format for the response will be determined by the App Provider overriding the function.

Example

tickerElement.on('click', (element) => {
    const ticker = element.innerText;

    const context = { 
        type: 'fdc3.instrument', 
        id: { 
            ticker 
        }
    }

    const intentResolution = await fin.me.interop.fireIntentForContext(context);
})