Class BannerAdDefault
Default implementation of IBannerAd for any unsupported platforms.
Inheritance
BannerAdDefault
Assembly: Chartboost.Mediation.dll
public class BannerAdDefault : BannerAdBase, IBannerAd, IAd, IDisposable
Properties
Declaration
public override BannerSize? BannerSize { get; }
Property Value
Overrides
Gets or sets the size of the container.
Declaration
public override ContainerSize ContainerSize { get; set; }
Property Value
Overrides
Gets or sets a value indicating whether this container can be dragged on the screen.
Declaration
public override bool Draggable { get; set; }
Property Value
Overrides
The horizontal alignment of the ad within its container.
Declaration
public override BannerHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Overrides
The keywords targeted for the ad.
Declaration
public override IReadOnlyDictionary<string, string> Keywords { get; set; }
Property Value
Overrides
The identifier for this load call. Note that this will change with auto-refresh and will be notified in WillAppear
Declaration
public override string LoadId { get; }
Property Value
Overrides
The load metrics for the most recent successful load operation, or Null if a banner is not loaded.
If auto-refresh is enabled, this value will change over time. The WillAppear event will be called after this value changes.
Declaration
public override Metrics? LoadMetrics { get; }
Property Value
Overrides
Optional partner-specific settings that can be associated with the advertisement placement.
Declaration
public override IReadOnlyDictionary<string, string> PartnerSettings { get; set; }
Property Value
Overrides
Gets or sets the Pivot property, which defines the normalized pivot point of this container within the screen coordinate system
from which all transformations and layout computations, such as width and height, are based.
This property functions similarly to the pivot in Unity's RectTransform
- X-Axis: Horizontal position within the container, normalized to the container's width.
A value of 0 aligns the pivot with the left edge, while a value of 1 aligns with the right edge.
- Y-Axis: Vertical position within the container, normalized to the container's height.
A value of 0 aligns the pivot with the top edge, while a value of 1 aligns with the bottom edge.
Examples:
- (0, 0): Pivot at the top-left corner of the container.
- (0.5, 0.5): Pivot at the center of the container.
- (1, 1): Pivot at the bottom-right corner of the container.
Declaration
public override Vector2 Pivot { get; set; }
Property Value
Overrides
The position of the Pivot of this container on the screen in the Screen Coordinate System.
X-Axis: The horizontal axis, with positive values increasing to the right.
Y-Axis: The vertical axis, with positive values increasing downward.
Declaration
public override Vector2 Position { get; set; }
Property Value
Overrides
The publisher supplied request that was used to load the ad.
Declaration
public override BannerAdLoadRequest Request { get; }
Property Value
Overrides
The vertical alignment of the ad within its container.
Declaration
public override BannerVerticalAlignment VerticalAlignment { get; set; }
Property Value
Overrides
Gets or sets a value indicating the visibility of the container.
Declaration
public override bool Visible { get; set; }
Property Value
Overrides
The winning bid info for the ad. Note that this will change with auto-refresh and will be notified in WillAppear
Declaration
public override BidInfo? WinningBidInfo { get; }
Property Value
Overrides
Methods
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
Overrides
Declaration
public override Task<BannerAdLoadResult> Load(BannerAdLoadRequest request)
Parameters
| Type |
Name |
Description |
| BannerAdLoadRequest |
request |
The ChartboostMediationBannerAdLoadRequest request
|
Returns
Overrides
Implements