pub fn raise(self, env: &mut JNIEnv, host: &JObject) {
        for event in self.0 {
            match event {
                QueuedEvent::Simple {
                    virtual_view_id,
                    event_type,
                } => {
                    send_simple_event(env, host, virtual_view_id, event_type);
                }
                QueuedEvent::WindowContentChanged { virtual_view_id } => {
                    send_window_content_changed(env, host, virtual_view_id);
                }
                QueuedEvent::TextChanged {
                    virtual_view_id,
                    old,
                    new,
                } => {
                    send_text_changed(env, host, virtual_view_id, old, new);
                }
                QueuedEvent::TextSelectionChanged {
                    virtual_view_id,
                    text,
                    start,
                    end,
                } => {
                    send_text_selection_changed(env, host, virtual_view_id, text, start, end);
                }
                QueuedEvent::TextTraversed {
                    virtual_view_id,
                    granularity,
                    forward,
                    segment_start,
                    segment_end,
                } => {
                    send_text_traversed(
                        env,
                        host,
                        virtual_view_id,
                        granularity,
                        forward,
                        segment_start,
                        segment_end,
                    );
                }
                QueuedEvent::InvalidateHost => {
                    env.call_method(host, "invalidate", "()V", &[]).unwrap();
                }
            }
        }
    }
Raise all queued events.

The `host` parameter is the Android view for the adapter that
returned this struct. It must be an instance of `android.view.View`
or a subclass.

This function must be called on the Android UI thread, while not holding
any locks required by the host view's implementations of Android
framework callbacks.
platforms/android/src/event.rs