pub fn listen<F: Fn(EventPayload) + Send + 'static>(
    &self,
    event: impl AsRef<str>,
    handler: F,
  ) -> EventId {
    super::event::listen(event, Some(self.window_label.to_string()), handler)
  }
/// Listen to a webview event.
Listen to a webview event.
Listen to a webview event .
pub fn listen<F: Fn(EventPayload) + Send + 'static>(
    &self,
    event: impl AsRef<str>,
    handler: F,
  ) -> EventId {
    super::event::listen(event, Some(self.window_label.to_string()), handler)
  }
pub fn listen < F : Fn ( EventPayload ) + Send + ' static > ( & self , event : impl AsRef < str > , handler : F , ) -> EventId { super :: event :: listen ( event , Some ( self . window_label . to_string ( ) ) , handler ) }
Listen to a webview event.
Listen to a webview event .
&self
event
impl AsRef<str>
handler
F