BaseAdView

abstract class BaseAdView : ViewGroup

الفئات الفرعية المباشرة المعروفة
AdManagerAdView

View لعرض إعلانات بانر لاستخدامها مع "إدارة إعلانات Google"

AdView

android.view.View لعرض إعلانات البانر


الإعلان الأساسي android.view.View لعرض "إعلانات البانر"

ملخّص

طُرق وضع التصميم المحمية

BaseAdView(context: Context!, adViewType: Int)

تنشئ هذه الدالة BaseAdView من الرمز البرمجي.

BaseAdView(context: Context!, attrs: AttributeSet!, adViewType: Int)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    allowMultipleAdSizes: Boolean
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    defStyle: Int,
    adViewType: Int
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    defStyle: Int,
    adViewType: Int,
    allowMultipleAdSizes: Boolean
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

الوظائف العامة

Unit

تدمير عرض الإعلان

AdListener!

تعرِض هذه الطريقة AdListener لمشاهدة الإعلان هذه.

AdSize?

تعرِض هذه السمة حجم الإعلان.

String!

يعرض رقم تعريف الوحدة الإعلانية.

OnPaidEventListener?

تعرض هذه السمة OnPaidEventListener لمشاهدة الإعلان هذه.

Long

تعرض هذه الطريقة رقم تعريف موضع الإعلان الخاص بـ BaseAdView.

ResponseInfo?

يعرض العنصر ResponseInfo للإعلان الذي تم تحميله.

Boolean

تعرِض هذه السمة القيمة true إذا كان الإعلان عبارة عن بانر قابل للتصغير، وتعرض القيمة false إلى أن يتم تحميل إعلان.

Boolean

تعرِض true إذا كان الإعلان قيد التحميل.

Unit

تحميل إعلان

Unit

يوقف أي معالجة إضافية مرتبطة بمشاهدة هذا الإعلان.

Unit

يستأنف مشاهدة الإعلان بعد إجراء مكالمة سابقة إلى pause.

Unit
setAdListener(adListener: AdListener!)

تضبط هذه السمة AdListener لمشاهدة الإعلان هذه.

Unit
setAdSize(adSize: AdSize!)

تضبط هذه السمة حجم الإعلان.

Unit
setAdUnitId(adUnitId: String!)

يضبط رقم تعريف الوحدة الإعلانية.

Unit

يسجِّل دالّة ردّ اتصال يتم استدعاؤها عندما يُقدّر أنّ هذا الإعلان قد حقّق ربحًا.

Unit
setPlacementId(placementId: Long)

يضبط معرّف موضع الإعلان لعرض الإعلان هذا.

الدوال المحمية

Unit
onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)
Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

الثوابت المكتسبة

من android.view.View
const Int
const Int
const Int
const Int
const Int
const Int
const Property<View!, Float!>!
const Int
const String!
AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE = "creditCardExpirationDate"
const String!
AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY = "creditCardExpirationDay"
const String!
AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH = "creditCardExpirationMonth"
const String!
AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR = "creditCardExpirationYear"
const String!
const String!
AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE = "creditCardSecurityCode"
const String!
const String!
const String!
const String!
const String!
const String!
const String!
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const Int
const Int
const Int
const Int
const Int
const Int
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const Int
const Int
const Int
const Int
const Int
const Int
const Int
GONE = 8
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
KEEP_SCREEN_ON = 67108864
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
NO_ID = -1
const Int
const Int
const Int
const Int
const Int
const Int
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const IntArray<Int>!
const Int
const Int
const Int
const Int
const Float
const Float
const Float
const Float
const Float
const Property<View!, Float!>!
const Property<View!, Float!>!
const Property<View!, Float!>!
const Property<View!, Float!>!
const Property<View!, Float!>!
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const IntArray<Int>!
const IntArray<Int>!
const Int
const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Property<View!, Float!>!
const Property<View!, Float!>!
const Property<View!, Float!>!
const String!
VIEW_LOG_TAG = "View"
const Int
const IntArray<Int>!
const Property<View!, Float!>!
const Property<View!, Float!>!
const Property<View!, Float!>!
من android.view.ViewGroup
const Int
const Int
const Int
const Int
const Int
const Int
const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

const Int

هذه السمة متوقّفة نهائيًا.

الدوال الموروثة

من android.view.View
Unit
Unit
Unit
ViewPropertyAnimator!
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Boolean
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Unit
Unit
Unit
Boolean
Unit
Unit
Unit
java-static Int
Int
Int
Int
Unit
WindowInsets!
Int
Int
Int
AccessibilityNodeInfo!
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean
Boolean
Boolean
Boolean
dispatchNestedPreScroll(p: Int, p1: Int, p2: IntArray!, p3: IntArray!)
Boolean
dispatchNestedScroll(p: Int, p1: Int, p2: Int, p3: Int, p4: IntArray!)
Boolean
Unit
draw(p: Canvas!)
Unit
OnBackInvokedDispatcher!
T!
<T : View?> findViewById(p: Int)
T!
<T : View?> findViewWithTag(p: Any!)
Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
generateDisplayHash(
    p: String!,
    p1: Rect!,
    p2: Executor!,
    p3: DisplayHashResultCallback!
)
java-static Int
View.AccessibilityDelegate!
Int
AccessibilityNodeProvider!
CharSequence!
Int
Int
String!
String!
Float
Animation!
Matrix!
IBinder!
IntArray<Int>!
(Mutable)Map<Int!, Int!>!
Array<String!>!
AutofillId!
Int
AutofillValue!
Drawable!
BlendMode!
ColorStateList!
PorterDuff.Mode!
Int
Int
Float
Int
Float
Rect!
Boolean
Boolean
ContentCaptureSession!
CharSequence!
Int
Context!
ContextMenu.ContextMenuInfo!
Boolean
java-static Int
getDefaultSize(p: Int, p1: Int)
Display!
IntArray<Int>!
Bitmap!

تم إيقاف هذه الوظيفة نهائيًا.

Int

تم إيقاف هذه الوظيفة نهائيًا.

Int

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Long
Float
Int
Boolean
Boolean
Int
ArrayList<View!>!
Unit
Drawable!
Int
BlendMode!
ColorStateList!
PorterDuff.Mode!
Float
Boolean
Handler!
Float
Float
Float
Float
Int
Runnable!
Boolean
Int
Unit
Int
Int
Drawable!
Drawable!
Int
Int
Int
Int
Boolean
KeyEvent.DispatcherState!
Int
Int
Int
ViewGroup.LayoutParams!
Int
Float
Int
Boolean
Unit
Unit
Unit
Matrix!
Int
Int
Int
Int
Int
Int
Int
Int
Int
Int
Int
Int
Int
View.OnFocusChangeListener!
Int
ViewOutlineProvider!
Int
Int
ViewOverlay!
Int
Int
Int
Int
Int
Int
ViewParent!
ViewParent!
OutcomeReceiver<GetCredentialResponse!, GetCredentialException!>!
GetCredentialRequest!
Float
Float
PointerIcon!
(Mutable)List<Rect!>!
Array<String!>!
Float
Resources!
Boolean
Int
Float
Int
AttachedSurfaceControl!
View!
WindowInsets!
Float
Float
Float
Float
Float
Int
Int
Int
Int
Int
Int
Int
Int
Int
Int
CharSequence!
StateListAnimator!
Int
Int
CharSequence!
(Mutable)List<Rect!>!
Int

تم إيقاف هذه الوظيفة نهائيًا.

Any!
Int
Int
CharSequence!
Int
Float
Int
TouchDelegate!
ArrayList<View!>!
Float
String!
Float
Float
Float
Long
Int
Int
Drawable!
Drawable!
Int
ViewTranslationResponse!
ViewTreeObserver!
Int
Int
Int
WindowId!
WindowInsetsController!
Int

تم إيقاف هذه الوظيفة نهائيًا.

IBinder!
Int
Unit
Float
Float
Float
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
java-static View!
inflate(p: Context!, p1: Int, p2: ViewGroup!)
Unit
Unit
Unit
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
View!
Unit
measure(p: Int, p1: Int)
java-static IntArray<Int>!
Unit
Unit
Unit
Unit
WindowInsets!
Unit
Boolean
Boolean
Unit
Unit
InputConnection!
Unit
Unit
Unit
Boolean
Unit
Unit
Unit
Boolean
Unit
Unit
Unit
onFocusChanged(p: Boolean, p1: Int, p2: Rect!)
Boolean
Unit
Boolean
Unit
Unit
Boolean
onKeyDown(p: Int, p1: KeyEvent!)
Boolean
Boolean
onKeyMultiple(p: Int, p1: Int, p2: KeyEvent!)
Boolean
onKeyPreIme(p: Int, p1: KeyEvent!)
Boolean
Boolean
onKeyUp(p: Int, p1: KeyEvent!)
Unit
onOverScrolled(p: Int, p1: Int, p2: Boolean, p3: Boolean)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
ContentInfo!
Unit
Unit
Parcelable!
Unit
Unit
onScrollCaptureSearch(
    p: Rect!,
    p1: Point!,
    p2: Consumer<ScrollCaptureTarget!>!
)
Unit
onScrollChanged(p: Int, p1: Int, p2: Int, p3: Int)
Boolean
Unit
onSizeChanged(p: Int, p1: Int, p2: Int, p3: Int)
Unit
Boolean
Boolean
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Boolean
overScrollBy(
    p: Int,
    p1: Int,
    p2: Int,
    p3: Int,
    p4: Int,
    p5: Int,
    p6: Int,
    p7: Int,
    p8: Boolean
)
Boolean
Boolean
Boolean
Boolean
Boolean
ContentInfo!
Unit
Boolean
Boolean
Unit
Unit
Unit
Unit
Unit
Unit
java-static Unit
Unit
Boolean
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Unit
Unit
Boolean
Unit
T!
<T : View?> requireViewById(p: Int)
Unit
java-static Int
resolveSize(p: Int, p1: Int)
java-static Int
resolveSizeAndState(p: Int, p1: Int, p2: Int)
Unit
Unit
saveAttributeDataForStyleable(
    p: Context!,
    p1: IntArray!,
    p2: AttributeSet!,
    p3: TypedArray!,
    p4: Int,
    p5: Int
)
Unit
Unit
scheduleDrawable(p: Drawable!, p1: Runnable!, p2: Long)
Unit
scrollBy(p: Int, p1: Int)
Unit
scrollTo(p: Int, p1: Int)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
setId(p: Int)
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Unit
setLayerType(p: Int, p1: Paint!)
Unit
Unit
Unit
Unit
setLeftTopRightBottom(p: Int, p1: Int, p2: Int, p3: Int)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Unit
setPadding(p: Int, p1: Int, p2: Int, p3: Int)
Unit
setPaddingRelative(p: Int, p1: Int, p2: Int, p3: Int)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
setTag(p: Int, p1: Any!)
Unit
Unit
Unit
Unit
setTop(p: Int)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
setX(p: Float)
Unit
setY(p: Float)
Unit
setZ(p: Float)
Boolean
ActionMode!
Unit
Boolean
startDrag(p: ClipData!, p1: View.DragShadowBuilder!, p2: Any!, p3: Int)

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean
Unit
String!
Unit
Unit
java-static Unit
Unit
Unit
Boolean
Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
من android.view.ViewGroup
Unit
Unit
Unit
addFocusables(p: ArrayList<View!>!, p1: Int, p2: Int)
Unit
Boolean
Unit
Unit
Boolean
Unit
attachLayoutAnimationParameters(
    p: View!,
    p1: ViewGroup.LayoutParams!,
    p2: Int,
    p3: Int
)
Unit
Unit
Boolean
Boolean
Unit
Unit
Unit
Unit
Unit
Unit
Unit
debug(p: Int)
Unit
Unit
Unit
WindowInsets!
Boolean
Unit
Unit
Unit
Boolean
Unit
Unit
Unit
Unit
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Unit
Unit
Unit
Unit
Unit
Unit
dispatchScrollCaptureSearch(
    p: Rect!,
    p1: Point!,
    p2: Consumer<ScrollCaptureTarget!>!
)
Boolean
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Boolean
Boolean
Boolean
Unit
Unit
Unit
Unit
WindowInsets!
WindowInsetsAnimation.Bounds!
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Boolean
drawChild(p: Canvas!, p1: View!, p2: Long)
Unit
Unit
View!
OnBackInvokedDispatcher!
Unit
View!
focusSearch(p: View!, p1: Int)
Unit
Boolean
ViewGroup.LayoutParams!
ViewGroup.LayoutParams!
CharSequence!
View!
Int
Int
java-static Int
getChildMeasureSpec(p: Int, p1: Int, p2: Int)
Boolean
Boolean
getChildVisibleRect(p: View!, p1: Rect!, p2: Point!)
Boolean
Boolean
Int
View!
LayoutAnimationController!
Animation.AnimationListener!
Int
LayoutTransition!
Int
ViewGroupOverlay!
Int

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean
Boolean
Int
Unit
invalidateChild(p: View!, p1: Rect!)

تم إيقاف هذه الوظيفة نهائيًا.

ViewParent!

تم إيقاف هذه الوظيفة نهائيًا.

Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean

تم إيقاف هذه الوظيفة نهائيًا.

Boolean
Boolean
Boolean
Unit
Unit
layout(p: Int, p1: Int, p2: Int, p3: Int)
Unit
measureChild(p: View!, p1: Int, p2: Int)
Unit
measureChildWithMargins(p: View!, p1: Int, p2: Int, p3: Int, p4: Int)
Unit
measureChildren(p: Int, p1: Int)
Unit
Unit
Unit
Unit
IntArray<Int>!
Unit
Unit
Boolean
Boolean
Boolean
onNestedFling(p: View!, p1: Float, p2: Float, p3: Boolean)
Boolean
onNestedPreFling(p: View!, p1: Float, p2: Float)
Boolean
Unit
onNestedPreScroll(p: View!, p1: Int, p2: Int, p3: IntArray!)
Unit
onNestedScroll(p: View!, p1: Int, p2: Int, p3: Int, p4: Int)
Unit
onNestedScrollAccepted(p: View!, p1: View!, p2: Int)
Boolean
Boolean
PointerIcon!
Boolean
onStartNestedScroll(p: View!, p1: View!, p2: Int)
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
removeViews(p: Int, p1: Int)
Unit
Unit
Boolean
Unit
Boolean
requestFocus(p: Int, p1: Rect!)
Boolean
Unit
Boolean
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit
Unit

تم إيقاف هذه الوظيفة نهائيًا.

Unit
Unit
Unit
Unit
Unit
Boolean
Boolean
ActionMode!
Unit
Unit
Unit
Unit

طُرق وضع التصميم المحمية

BaseAdView

protected BaseAdView(context: Context!, adViewType: Int)

تنشئ هذه الدالة BaseAdView من الرمز البرمجي.

المعلمات
context: Context!

Context الذي يتم تشغيل BaseAdView فيه

BaseAdView

protected BaseAdView(context: Context!, attrs: AttributeSet!, adViewType: Int)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView

protected BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    allowMultipleAdSizes: Boolean
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView

protected BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    defStyle: Int,
    adViewType: Int
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

BaseAdView

protected BaseAdView(
    context: Context!,
    attrs: AttributeSet!,
    defStyle: Int,
    adViewType: Int,
    allowMultipleAdSizes: Boolean
)

تنشئ هذه الطريقة عنصر BaseAdView من تصميم XML.

الوظائف العامة

إتلافه

fun destroy(): Unit

تدمير عرض الإعلان يجب استدعاء هذا الإجراء في إجراء onDestroy الخاص بالنشاط الرئيسي. يجب عدم استدعاء أي طرق أخرى في "مشاهدة الإعلان" بعد استدعاء destroy.

getAdListener

fun getAdListener(): AdListener!

تعرِض هذه الطريقة AdListener لمشاهدة الإعلان هذه.

getAdSize

fun getAdSize(): AdSize?

تعرِض هذه السمة حجم الإعلان. تعرض الدالة القيمة null إذا لم يتم استدعاء setAdSize بعد.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adSize

getAdUnitId

fun getAdUnitId(): String!

يعرض رقم تعريف الوحدة الإعلانية.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adUnitId

getOnPaidEventListener

fun getOnPaidEventListener(): OnPaidEventListener?

تعرض هذه السمة OnPaidEventListener لمشاهدة الإعلان هذه.

getPlacementId

fun getPlacementId(): Long

تعرض هذه الطريقة رقم تعريف موضع الإعلان الخاص بـ BaseAdView.

getResponseInfo

fun getResponseInfo(): ResponseInfo?

يعرض العنصر ResponseInfo للإعلان الذي تم تحميله. تعرض null إلى أن يتم تحميل الإعلان بنجاح.

isCollapsible

fun isCollapsible(): Boolean

تعرِض هذه السمة القيمة true إذا كان الإعلان عبارة عن بانر قابل للتصغير، وتعرض القيمة false إلى أن يتم تحميل إعلان.

isLoading

fun isLoading(): Boolean

تعرِض true إذا كان الإعلان قيد التحميل.

loadAd

@RequiresPermission(value = Manifest.permission.INTERNET)
fun loadAd(adRequest: AdRequest!): Unit

تحميل إعلان

عمليات الطرح
java.lang.IllegalStateException

في حال عدم ضبط حجم الإعلان أو معرّف وحدة الإعلان

pause

fun pause(): Unit

يوقف أي معالجة إضافية مرتبطة بمشاهدة هذا الإعلان. يجب استدعاء هذا الإجراء في إجراء onPause الخاص بالنشاط الرئيسي.

استئناف

fun resume(): Unit

يستأنف مشاهدة الإعلان بعد إجراء مكالمة سابقة إلى pause. يجب استدعاء هذا الإجراء في إجراء onResume الخاص بالنشاط الرئيسي.

setAdListener

fun setAdListener(adListener: AdListener!): Unit

تضبط هذه السمة AdListener لمشاهدة الإعلان هذه.

setAdSize

fun setAdSize(adSize: AdSize!): Unit

تضبط هذه السمة حجم الإعلان.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adSize

عمليات الطرح
java.lang.IllegalStateException

إذا تم ضبط حجم الإعلان من قبل

setAdUnitId

fun setAdUnitId(adUnitId: String!): Unit

يضبط رقم تعريف الوحدة الإعلانية.

ref com.google.android.gms.ads.R.styleable#AdsAttrs_adUnitId

عمليات الطرح
java.lang.IllegalStateException

إذا سبق أن تم ضبط رقم تعريف الوحدة الإعلانية

setOnPaidEventListener

fun setOnPaidEventListener(listener: OnPaidEventListener?): Unit

يسجِّل دالّة ردّ اتصال يتم استدعاؤها عندما يُقدّر أنّ هذا الإعلان قد حقّق ربحًا.

setPlacementId

fun setPlacementId(placementId: Long): Unit

يضبط معرّف موضع الإعلان لعرض الإعلان هذا.

لضمان تضمين رقم تعريف موضع الإعلان هذا في التقارير، استدعِ هذه الطريقة قبل عرض الإعلان.

المعلمات
placementId: Long

عدد صحيح طويل توفّره واجهة مستخدم AdMob لموضع الإعلان الذي تم ضبط إعداداته.

الدوال المحمية

onLayout

protected fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int): Unit

onMeasure

protected fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit