GfpNativeSimpleAdView

class GfpNativeSimpleAdView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout, ViewExtensions, GfpAdDebuggerAdCallIdProvider

Ad view for Native Simple ad To attach ad to page, should call setNativeSimpleAd after loading.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Create a GfpNativeSimpleAdView instance

Types

Link copied to clipboard
class BackgroundContainer @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout

Container for background view with width constraints

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val additionalContainer: <Error class: unknown class>
Link copied to clipboard
val extraAdViews: <Error class: unknown class>

내부에서 생성된 배경 뷰들을 저장하는 맵

Link copied to clipboard
val mediaView: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addView(child: View?, index: Int, params: ViewGroup.LayoutParams?)
Link copied to clipboard
open override fun bringChildToFront(child: View?)
Link copied to clipboard
open override fun dispatchTouchEvent(ev: MotionEvent): Boolean
Link copied to clipboard
open override fun getAdCallIdForDebugger(): String?

Returns the adCallId associated with the current ad being displayed in this view, or null if no ad has been loaded yet.

Link copied to clipboard
fun initializeBackgroundContainer(style: StyleRecord?, extendedBottomBackgroundHeight: Int = 0, theme: ResolvedTheme)

Initializes background container

Link copied to clipboard
open override fun removeAllViews()
Link copied to clipboard
open override fun removeView(view: View?)
Link copied to clipboard

Sets the GfpNativeSimpleAd that this view is currently displaying.

Link copied to clipboard
fun updateBackgroundAlpha(alpha: Float, gradientAlpha: Float)
Link copied to clipboard
fun updateBackgroundMargins(left: Int, top: Int, right: Int, bottom: Int, shadowBasis: Int?, extendedBottomBackgroundHeight: Int)
Link copied to clipboard