-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource
public class MobwithPointBannerView extends RelativeLayout
포인트 적립 기능이 있는 배너 광고를 표시하고 관리하는 커스텀 뷰입니다. 이 뷰는 다음과 같은 주요 기능을 수행합니다: - MobwithBannerView를 내부에 포함하여 실제 배너 광고를 로드하고 표시합니다. - 광고 로드 상태에 따라 프로그레스바를 표시하거나 숨깁니다. - 광고 로드 실패 시 대체 이미지를 표시하고, 클릭 시 기본 URL로 이동하는 기능을 제공합니다. - 포인트 지급 전과 후의 UI를 구분하여 표시할 수 있는 기능을 제공합니다 (예: "포인트 받기" / "적립 완료"). - iBannerCallback을 통해 광고 로드 상태 및 클릭 이벤트를 외부로 전달합니다. - 광고 유닛 ID를 설정하고, 광고를 로드, 재시작, 중지, 파괴하는 기능을 제공합니다.
-
-
Constructor Summary
Constructors Constructor Description MobwithPointBannerView(Context context)MobwithPointBannerView 생성자 (코드에서 동적 생성 시 사용) MobwithPointBannerView(Context context, AttributeSet attrs)MobwithPointBannerView 생성자 (XML 레이아웃에서 사용 시 호출) MobwithPointBannerView(Context context, AttributeSet attrs, int defStyle)MobwithPointBannerView 생성자 (XML 레이아웃에서 스타일과 함께 사용 시 호출)
-
Method Summary
Modifier and Type Method Description MobwithPointBannerViewsetBannerUnitId(String unitId)이 포인트 배너 뷰에 사용할 광고 유닛 ID를 설정합니다. voidsetPointEnable(boolean isEnable)이 배너를 통해 포인트를 지급할 수 있는지 여부를 설정합니다.이 설정에 따라 포인트 지급 전 UI (layoutWillPoint)와 지급 후 UI (layoutAfterPoint)의 가시성이 변경됩니다.포인트가 이미 지급된 경우 false로 설정하여 "적립 완료" 등의 UI를 표시할 수 있습니다.UI 변경은 메인 스레드에서 안전하게 수행됩니다. booleanisRewarded()현재 배너에 대한 리워드(포인트)가 이미 지급되었는지 여부를 반환합니다.포인트 지급 후 UI (layoutAfterPoint)가 보이는 상태이면 true를 반환합니다. voidonWindowFocusChanged(boolean hasWindowFocus)voidresetInfo()배너의 상태 정보를 초기화합니다.콜백 전송 여부 플래그를 false로 설정하고, 포인트 지급 가능 상태를 true로 (UI를 "지급 전"으로) 되돌립니다.주로 새로운 광고를 로드하기 전에 호출됩니다. voidloadAdIfNeed()광고를 로드해야 할 필요가 있을 경우에만 광고를 로드합니다. voidloadAd()포인트 배너 광고를 로드합니다.이미 로딩 중인 경우 중복 실행을 방지합니다. voidsetAdListener(iBannerCallback pMobonAdCallback)이 포인트 배너 뷰의 광고 관련 이벤트(로드 성공/실패, 클릭 등)를 수신할 콜백 리스너를 설정합니다. voidrestart()내부 MobwithBannerView의 광고 활동을 다시 시작합니다.예를 들어, Activity가 onResume 상태가 될 때 호출될 수 있습니다. voidstop()내부 MobwithBannerView의 광고 활동을 중지합니다.예를 들어, Activity가 onPause 상태가 될 때 호출될 수 있습니다. voiddestroyAd()내부 MobwithBannerView에서 사용된 리소스를 해제합니다.예를 들어, Activity가 onDestroy 상태가 되거나 뷰가 더 이상 필요 없을 때 호출하여 메모리 누수를 방지합니다.내부 배너 뷰를 null로 만들어 다음 loadAd 호출 시 새로 생성하도록 유도할 수도 있습니다. voidshowNextAd()현재 표시된 광고가 여러 개인 경우, 다음 광고를 표시하도록 내부 MobwithBannerView에 요청합니다. -
Methods inherited from class android.widget.RelativeLayout
generateLayoutParams, getAccessibilityClassName, getBaseline, getGravity, getIgnoreGravity, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedState -
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class android.view.View
addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, forceHasOverlappingRendering, forceLayout, generateDisplayHash, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performHapticFeedback, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidateDelayed, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocusFromTouch, requestPointerCapture, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MobwithPointBannerView
MobwithPointBannerView(Context context)
MobwithPointBannerView 생성자 (코드에서 동적 생성 시 사용)- Parameters:
context- 뷰를 생성하는 데 사용되는 컨텍스트
-
MobwithPointBannerView
MobwithPointBannerView(Context context, AttributeSet attrs)
MobwithPointBannerView 생성자 (XML 레이아웃에서 사용 시 호출)- Parameters:
context- 컨텍스트attrs- XML 레이아웃에서 정의된 속성
-
MobwithPointBannerView
MobwithPointBannerView(Context context, AttributeSet attrs, int defStyle)
MobwithPointBannerView 생성자 (XML 레이아웃에서 스타일과 함께 사용 시 호출)- Parameters:
context- 컨텍스트attrs- XML 레이아웃에서 정의된 속성defStyle- 적용할 스타일 리소스
-
-
Method Detail
-
setBannerUnitId
MobwithPointBannerView setBannerUnitId(String unitId)
이 포인트 배너 뷰에 사용할 광고 유닛 ID를 설정합니다.설정된 유닛 ID는 내부 MobwithBannerView에도 전달됩니다.
- Parameters:
unitId- 광고 유닛 ID 문자열
-
setPointEnable
void setPointEnable(boolean isEnable)
이 배너를 통해 포인트를 지급할 수 있는지 여부를 설정합니다.이 설정에 따라 포인트 지급 전 UI (layoutWillPoint)와 지급 후 UI (layoutAfterPoint)의 가시성이 변경됩니다.포인트가 이미 지급된 경우 false로 설정하여 "적립 완료" 등의 UI를 표시할 수 있습니다.UI 변경은 메인 스레드에서 안전하게 수행됩니다.
- Parameters:
isEnable- true이면 포인트 지급 가능 UI 표시, false이면 포인트 지급 완료 UI 표시
-
isRewarded
boolean isRewarded()
현재 배너에 대한 리워드(포인트)가 이미 지급되었는지 여부를 반환합니다.포인트 지급 후 UI (layoutAfterPoint)가 보이는 상태이면 true를 반환합니다.
-
onWindowFocusChanged
void onWindowFocusChanged(boolean hasWindowFocus)
-
resetInfo
void resetInfo()
배너의 상태 정보를 초기화합니다.콜백 전송 여부 플래그를 false로 설정하고, 포인트 지급 가능 상태를 true로 (UI를 "지급 전"으로) 되돌립니다.주로 새로운 광고를 로드하기 전에 호출됩니다.
-
loadAdIfNeed
void loadAdIfNeed()
광고를 로드해야 할 필요가 있을 경우에만 광고를 로드합니다.현재 로딩 중이거나 이미 콜백이 전송된 상태(즉, 광고 로드가 한 번 완료된 상태)가 아니면 loadAd를 호출합니다.
-
loadAd
void loadAd()
포인트 배너 광고를 로드합니다.이미 로딩 중인 경우 중복 실행을 방지합니다.프로그레스바를 표시하고, 내부 MobwithBannerView를 생성(필요시)하여 광고 로드를 시작합니다.내부 배너 뷰의 로드 결과에 따라 UI를 업데이트하고, 설정된 콜백 리스너를 통해 결과를 전달합니다.
-
setAdListener
void setAdListener(iBannerCallback pMobonAdCallback)
이 포인트 배너 뷰의 광고 관련 이벤트(로드 성공/실패, 클릭 등)를 수신할 콜백 리스너를 설정합니다.
- Parameters:
pMobonAdCallback- iBannerCallback 구현 객체
-
restart
void restart()
내부 MobwithBannerView의 광고 활동을 다시 시작합니다.예를 들어, Activity가 onResume 상태가 될 때 호출될 수 있습니다.
-
stop
void stop()
내부 MobwithBannerView의 광고 활동을 중지합니다.예를 들어, Activity가 onPause 상태가 될 때 호출될 수 있습니다.
-
destroyAd
void destroyAd()
내부 MobwithBannerView에서 사용된 리소스를 해제합니다.예를 들어, Activity가 onDestroy 상태가 되거나 뷰가 더 이상 필요 없을 때 호출하여 메모리 누수를 방지합니다.내부 배너 뷰를 null로 만들어 다음 loadAd 호출 시 새로 생성하도록 유도할 수도 있습니다.
-
showNextAd
void showNextAd()
현재 표시된 광고가 여러 개인 경우, 다음 광고를 표시하도록 내부 MobwithBannerView에 요청합니다.
-
-
-
-