# 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.
            }
        }
    });

Content copied to clipboard

#### Since

Added 2.71.0.

#### Parameters

activity

Current activity.

onCloseCallback

called when the browser closed.

#### See also

GamebaseCallback

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()
            .setCategoryNames(Arrays.asList("myCategory", "anotherCategory"))
            .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.
            }
        }
    });

Content copied to clipboard

#### Since

Added 2.71.0.

#### Parameters

activity

Current activity.

configuration

The init settings of game notice.

onCloseCallback

called when the browser closed.

#### See also

GamebaseCallback