MessageSender constructor
MessageSender({})
Implementation
MessageSender({
/// The [tabs.Tab] which opened the connection, if any. This property will
/// *only* be present when the connection was opened from a tab (including
/// content scripts), and *only* if the receiver is an extension, not an
/// app.
Tab? tab,
/// The [frame](webNavigation#frame_ids) that opened the connection. 0 for
/// top-level frames, positive for child frames. This will only be set when
/// `tab` is set.
int? frameId,
/// The guest process id of the requesting webview, if available. Only
/// available for component extensions.
int? guestProcessId,
/// The guest render frame routing id of the requesting webview, if
/// available. Only available for component extensions.
int? guestRenderFrameRoutingId,
/// The ID of the extension or app that opened the connection, if any.
String? id,
/// The URL of the page or frame that opened the connection. If the sender
/// is in an iframe, it will be iframe's URL not the URL of the page which
/// hosts it.
String? url,
/// The name of the native application that opened the connection, if any.
String? nativeApplication,
/// The TLS channel ID of the page or frame that opened the connection, if
/// requested by the extension or app, and if available.
String? tlsChannelId,
/// The origin of the page or frame that opened the connection. It can vary
/// from the url property (e.g., about:blank) or can be opaque (e.g.,
/// sandboxed iframes). This is useful for identifying if the origin can be
/// trusted if we can't immediately tell from the URL.
String? origin,
/// A UUID of the document that opened the connection.
String? documentId,
/// The lifecycle the document that opened the connection is in at the time
/// the port was created. Note that the lifecycle state of the document may
/// have changed since port creation.
String? documentLifecycle,
}) : _wrapped = $js.MessageSender(
tab: tab?.toJS,
frameId: frameId,
guestProcessId: guestProcessId,
guestRenderFrameRoutingId: guestRenderFrameRoutingId,
id: id,
url: url,
nativeApplication: nativeApplication,
tlsChannelId: tlsChannelId,
origin: origin,
documentId: documentId,
documentLifecycle: documentLifecycle,
);