Add multiple event types support at once for function one

Signed-off-by: dingxin <dingxin.git@gmail.com>