AddStreamService class
Service class for fetching and tracking ads from AddStream.
This class handles communication with the AddStream API, including fetching ads, parsing responses, and tracking impressions.
You typically don't need to use this class directly. The AddStreamWidget uses it internally.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchAd(
{required String zoneId}) → Future< AddStreamAd?> -
Fetches an ad for the specified
zoneId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signWithHmac(
String key, int timestamp) → String -
Generates an HMAC-SHA256 signature for the given
keyandtimestamp. -
toString(
) → String -
A string representation of this object.
inherited
-
trackImpression(
String impressionUrl) → Future< void> - Tracks an impression for the given ad.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited