/// <summary> /// The <see cref="OnBeforePopupCreatedDelegate"/> will be called <b>before</b> the popup has been created and /// can be used to cancel popup creation if required, modify <see cref="IBrowserSettings"/> and disable javascript. /// </summary> /// <param name="onBeforePopupCreated">Action to be invoked before popup is created.</param> /// <returns><see cref="LifeSpanHandlerBuilder"/> instance allowing you to chain method calls together</returns> public LifeSpanHandlerBuilder OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) { handler.OnBeforePopupCreated(onBeforePopupCreated); return(this); }
/// <summary> /// The <see cref="OnBeforePopupCreatedDelegate"/> will be called <b>before</b> the popup has been created and /// can be used to cancel popup creation if required or modify <see cref="IBrowserSettings"/>. /// </summary> /// <param name="onBeforePopupCreated">Action to be invoked before popup is created.</param> /// <returns><see cref="LifeSpanHandler"/> instance allowing you to chain method calls together</returns> public LifeSpanHandler OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) { this.onBeforePopupCreated = onBeforePopupCreated; return(this); }