Tutorial: interop.joinContextGroup

interop.joinContextGroup

This is primarily used for platform windows. Views within a platform should not have to use this API.

Join all connections at the given identity (or just one if endpointId provided) to context group contextGroupId. If no target is specified, it adds the sender to the context group.

Example

joinViewToContextGroup = async (contextGroupId, view) => {
    await fin.me.interop.joinContextGroup(contextGroupId, view);
}

getLastFocusedView()
    .then(lastFocusedViewIdentity => {
        joinViewToContextGroup('red', lastFocusedViewIdentity)
    })