# enableAutoCloseByCustomScheme

open fun enableAutoCloseByCustomScheme(autoCloseByCustomScheme: Boolean): GamebaseWebViewConfiguration.Builder

Change whether webview is automatically closed when the custom scheme is activated. On platforms like Unity, the event doesn't fire while the popup is floating. Therefore, in order to process the event, if a custom click event occurs, all pop-ups must be closed. The default value is true.

#### Since

Added 2.41.0.

#### Return

The builder of configuration.

#### Parameters

autoCloseByCustomScheme

close webview when custom event execution is required.