AddHostAccessRequestRequest constructor

AddHostAccessRequestRequest({
  1. String? documentId,
  2. double? tabId,
  3. String? pattern,
})

Implementation

AddHostAccessRequestRequest({
  /// The id of a document where host access requests can be shown. Must be
  /// the top-level document within a tab. If provided, the request is shown
  /// on the tab of the specified document and is removed when the document
  /// navigates to a new origin. Adding a new request will override any
  /// existent request for `tabId`. This or `tabId` must be specified.
  String? documentId,

  /// The id of the tab where host access requests can be shown. If provided,
  /// the request is shown on the specified tab and is removed when the tab
  /// navigates to a new origin. Adding a new request will override an
  /// existent request for `documentId`. This or `documentId` must be
  /// specified.
  double? tabId,

  /// The URL pattern where host access requests can be shown. If provided,
  /// host access requests will only be shown on URLs that match this pattern.
  String? pattern,
}) : _wrapped = $js.AddHostAccessRequestRequest(
        documentId: documentId,
        tabId: tabId,
        pattern: pattern,
      );