# showImageNotices

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

Show image notice web pages.

Example Usage:

    Gamebase.ImageNotice.showImageNotices(getActivity(),
        new GamebaseCallback(){
            @Override
            public void onCallback(GamebaseException exception) {
                // Called when the entire imageNotice is closed.
                ...
            }
        }
    );

Content copied to clipboard

#### Since

Added 2.12.0.

#### Parameters

activity

Current activity.

onCloseCallback

called when the browser closed.

#### See also

GamebaseCallback

open fun showImageNotices(@NonNull activity: Activity, @Nullable configuration: ImageNoticeConfiguration, @Nullable onCloseCallback: GamebaseCallback, @Nullable onEvent: GamebaseDataCallback<String>)

Show image notice web pages.

Example Usage:

    Gamebase.ImageNotice.showImageNotices(getActivity(), null,
        new GamebaseCallback(){
            @Override
            public void onCallback(GamebaseException exception) {
                // Called when the entire imageNotice is closed.
                ...
            }
        },
        new GamebaseDataCallback<String>() {
            @Override
            public void onCallback(String payload, GamebaseException exception) {
                // Called when custom event occurred.
                ...
            }
        });

Content copied to clipboard

#### Since

Added 2.12.0.

#### Parameters

activity

Current activity.

configuration

The initial settings of image notices.

onCloseCallback

called when the browser closed.

onEvent

Click event with notice type 'Custom'.

#### See also

ImageNoticeConfiguration
ImageNoticeConfiguration.Builder
GamebaseCallback
GamebaseDataCallback