openGameNotice

open fun openGameNotice(@NonNull activity: Activity, @Nullable onCloseCallback: GamebaseCallback)

Open game notice WebView which is set in NHN Cloud Gamebase game notice Console.

Example Usage:

Gamebase.GameNotice.openGameNotice(activity, new GamebaseCallback() {
    @Override
    public void onCallback(GamebaseException exception) {
        if (Gamebase.isSuccess(exception)) {
            // The user closed the game notice web view.
        } else {
            // Error occur when opening the game notice web view.
        }
    }
});

Since

Added 2.71.0.

Parameters

activity

Current activity.

onCloseCallback

called when the browser closed.

See also


open fun openGameNotice(@NonNull activity: Activity, @NonNull configuration: GameNoticeConfiguration, @Nullable onCloseCallback: GamebaseCallback)

Open game notice WebView which is set in NHN Cloud Gamebase game notice Console.

Example Usage:

GameNoticeConfiguration configuration = GameNoticeConfiguration
        .newBuilder()
        .build();
Gamebase.GameNotice.openGameNotice(activity, configuration, new GamebaseCallback() {
    @Override
    public void onCallback(GamebaseException exception) {
        if (Gamebase.isSuccess(exception)) {
            // The user closed the game notice web view.
        } else {
            // Error occur when opening the game notice web view.
        }
    }
});

Since

Added 2.71.0.

Parameters

activity

Current activity.

configuration

The init settings of game notice.

onCloseCallback

called when the browser closed.

See also