Gamebase SDK for Android  2.41.1
NHN Cloud Gamebase Platform
Gamebase.ImageNotice Class Reference

This class provides functionality related to image notices. More...

Collaboration diagram for Gamebase.ImageNotice:
Collaboration graph

Static Public Member Functions

static void showImageNotices (@NonNull Activity activity, @Nullable GamebaseCallback onCloseCallback)
 Show image notice web pages. More...
 
static void showImageNotices (@NonNull Activity activity, @Nullable ImageNoticeConfiguration configuration, @Nullable GamebaseCallback onCloseCallback, @Nullable GamebaseDataCallback< String > onEvent)
 Show image notice web pages. More...
 
static void closeImageNotices (@NonNull Activity activity)
 This method to close the image notice in display on a screen. More...
 

Detailed Description

This class provides functionality related to image notices.

Member Function Documentation

◆ closeImageNotices()

static void closeImageNotices ( @NonNull Activity  activity)
static

This method to close the image notice in display on a screen.

Since
Added 2.12.0.
Parameters
activityCurrent activity.

◆ showImageNotices() [1/2]

static void showImageNotices ( @NonNull Activity  activity,
@Nullable GamebaseCallback  onCloseCallback 
)
static

Show image notice web pages.

Since
Added 2.12.0.
Parameters
activityCurrent activity.
onCloseCallbackcalled when the browser closed.

Example Usage:

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

◆ showImageNotices() [2/2]

static void showImageNotices ( @NonNull Activity  activity,
@Nullable ImageNoticeConfiguration  configuration,
@Nullable GamebaseCallback  onCloseCallback,
@Nullable GamebaseDataCallback< String >  onEvent 
)
static

Show image notice web pages.

Since
Added 2.12.0.
Parameters
activityCurrent activity.
configurationThe initial settings of image notices.
onCloseCallbackcalled when the browser closed.
onEventClick event with notice type 'Custom'.

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.
...
}
});
See also
com.toast.android.gamebase.imagenotice.ImageNoticeConfiguration.
com.toast.android.gamebase.imagenotice.ImageNoticeConfiguration.Builder.
com.toast.android.gamebase.GamebaseCallback.
com.toast.android.gamebase.GamebaseDataCallback.