GetFrameCallbackDetails constructor

GetFrameCallbackDetails({
  1. required bool errorOccurred,
  2. required String url,
  3. required int parentFrameId,
  4. required String documentId,
  5. String? parentDocumentId,
  6. required DocumentLifecycle documentLifecycle,
  7. required FrameType frameType,
})

Implementation

GetFrameCallbackDetails({
  /// True if the last navigation in this frame was interrupted by an error,
  /// i.e. the onErrorOccurred event fired.
  required bool errorOccurred,

  /// The URL currently associated with this frame, if the frame identified by
  /// the frameId existed at one point in the given tab. The fact that an URL
  /// is associated with a given frameId does not imply that the corresponding
  /// frame still exists.
  required String url,

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

  /// A UUID of the document loaded.
  required String documentId,

  /// 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.GetFrameCallbackDetails(
        errorOccurred: errorOccurred,
        url: url,
        parentFrameId: parentFrameId,
        documentId: documentId,
        parentDocumentId: parentDocumentId,
        documentLifecycle: documentLifecycle.toJS,
        frameType: frameType.toJS,
      );