Set internal browser close button position

Prev Next

This method allows you to customize the close button position in the internal browser that opens within your app. You can position the close button on the left or right or hide it completely to provide a seamless user experience that matches your app's design.

This method should be called in your Application Class right after initializing the Insider SDK.

The internal browser is used when users interact with specific campaigns or content that opens web pages within your application.

If you do not call this method or pass null as the parameter, the close button will be positioned on the right side by default.

Parameter

Description

Data Type

position

Defines the position of the close button.

LEFT: Positions the close button at the top left corner.

RIGHT: Positions the close button at the top-right corner (default).

NONE: Hides the close button completely.
The values must be in uppercase.

CloseButtonPosition

Method Signature

public void setInternalBrowserCloseButtonPosition(CloseButtonPosition position)

Method Examples

This example positions the close button on the left.

Insider.Instance.setInternalBrowserCloseButtonPosition(CloseButtonPosition.LEFT);

This example positions the close button on the right (default).

Insider.Instance.setInternalBrowserCloseButtonPosition(CloseButtonPosition.RIGHT);

This example hides the close button.

Insider.Instance.setInternalBrowserCloseButtonPosition(CloseButtonPosition.NONE);