open

open fun open(@NotNull context: @NotNull Context)

Opens the Beacon UI, navigating to the appropriate page based on your Beacon's configuration.

Ensure that Beacon has been initialized using Beacon.Builder() before calling this method.

There is no explicit method provided to close the Beacon UI; users are expected to close it by tapping the close button or navigating away using the back button.

Parameters

context

open fun open(@NotNull context: @NotNull Context, screen: BeaconScreens, args: ArrayList<String>)

Opens the Beacon UI on a specific screen.

Ensure that Beacon has been initialized using Beacon.Builder() before calling this method.

Parameters

context
screen

One of the possible BeaconScreens enum values, specifying the screen to open.

args

Optional arguments to be passed to the selected screen.