Add internal API to send an event to IMEngine