AdTarget class

One concrete ad to show: a network and a full-screen type.

The server encodes it as "<networkCode>.<adTypeCode>", e.g. "2.1" is a rewarded ad on Unity.

Constructors

AdTarget(NetworkType network, AdsType type)
const

Properties

code → String
The server encoding, the inverse of tryParse.
no setter
hashCode → int
The hash code for this object.
no setteroverride
network → NetworkType
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → AdsType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

tryParse(Object? raw) → AdTarget?
Parses "2.1" (or the number 2.1). Returns null for anything malformed or unknown.