OnBeforeNavigateDetails constructor

OnBeforeNavigateDetails({
  1. required int tabId,
  2. required String url,
  3. required int processId,
  4. required int frameId,
  5. required int parentFrameId,
  6. required double timeStamp,
  7. String? parentDocumentId,
  8. required DocumentLifecycle documentLifecycle,
  9. required FrameType frameType,
})

Implementation

OnBeforeNavigateDetails({
  /// The ID of the tab in which the navigation is about to occur.
  required int tabId,
  required String url,

  /// The value of -1.
  required int processId,

  /// 0 indicates the navigation happens in the tab content window; a positive
  /// value indicates navigation in a subframe. Frame IDs are unique for a
  /// given tab and process.
  required int frameId,

  /// The ID of the parent frame, or `-1` if this is the main frame.
  required int parentFrameId,

  /// The time when the browser was about to start the navigation, in
  /// milliseconds since the epoch.
  required double timeStamp,

  /// A UUID of the parent document owning this frame. This is not set if
  /// there is no parent.
  String? parentDocumentId,

  /// The lifecycle the document is in.
  required DocumentLifecycle documentLifecycle,

  /// The type of frame the navigation occurred in.
  required FrameType frameType,
}) : _wrapped = $js.OnBeforeNavigateDetails(
        tabId: tabId,
        url: url,
        processId: processId,
        frameId: frameId,
        parentFrameId: parentFrameId,
        timeStamp: timeStamp,
        parentDocumentId: parentDocumentId,
        documentLifecycle: documentLifecycle.toJS,
        frameType: frameType.toJS,
      );