Gamebase SDK for Android  2.40.0
NHN Cloud Gamebase Platform
ImageNoticeConfiguration.Builder Class Reference
Collaboration diagram for ImageNoticeConfiguration.Builder:
Collaboration graph

Public Member Functions

ImageNoticeConfiguration build ()
 This method creates an instance of ImageNoticeConfiguration. More...
 
Builder setBackgroundColor (int backgroundColor)
 Change the dimmed background color. More...
 
Builder setBackgroundColor (String backgroundColor)
 Change the dimmed background color. More...
 
Builder setTimeout (long timeoutMs)
 Set the timeout of each image notice popup. More...
 
Builder enableAutoCloseByCustomScheme (boolean autoCloseByCustomScheme)
 Change whether image notification is automatically terminated when the custom scheme is activated. More...
 

Member Function Documentation

◆ build()

This method creates an instance of ImageNoticeConfiguration.

Since
Added 2.12.0.
Returns
an instance of ImageNoticeConfiguration

◆ enableAutoCloseByCustomScheme()

Builder enableAutoCloseByCustomScheme ( boolean  autoCloseByCustomScheme)

Change whether image notification is automatically terminated when the custom scheme is activated.

On platforms like Unity, the event doesn't fire while the popup is floating. Therefore, in order to process the event, if a custom click event occurs, all pop-ups must be closed. The default value is true.

Since
Added 2.12.0.
Parameters
autoCloseByCustomSchemeclose image notice when custom event execution is required.
Returns
an instance of ImageNoticeConfiguration

◆ setBackgroundColor() [1/2]

Builder setBackgroundColor ( int  backgroundColor)

Change the dimmed background color.

The default value is translucent gray.

Since
Added 2.12.0.
Parameters
backgroundColoran integer value of ARGB color. See android.graphics.Color#toArgb()
Returns
an instance of ImageNoticeConfiguration
See also
android.graphics.Color

◆ setBackgroundColor() [2/2]

Builder setBackgroundColor ( String  backgroundColor)

Change the dimmed background color.

The default value is translucent gray.

Since
Added 2.12.0.
Parameters
backgroundColoran string value of ARGB color like '#FF804400'. See android.graphics.Color#parseColor(String)
Returns
an instance of ImageNoticeConfiguration
See also
android.graphics.Color

◆ setTimeout()

Builder setTimeout ( long  timeoutMs)

Set the timeout of each image notice popup.

When an http error such as 404 occurs, the error condition is not known in the web view, and it waits indefinitely. To prevent this, the popup is automatically terminated after the timeout period. The default value is 5000.(milliseconds)

Since
Added 2.12.0.
Parameters
timeoutMswaiting time(milliseconds) for the web view response.
Returns
an instance of ImageNoticeConfiguration
Here is the call graph for this function: