StorytellerGAMModule class

Flutter-facing API for the Storyteller GAM integration.

Typical usage:

await StorytellerGAMModule.setup(
  StorytellerGAMModuleConfiguration(
    adUnit: (adRequestInfo) {
      // Inspect request and decide which ad unit to return.
      return 'ca-app-pub-...';
    },
    customNativeTemplateIds: const StorytellerCustomNativeTemplateIds(stories: 'tpl_story'),
  ),
);

Constructors

StorytellerGAMModule()

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

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

setup(StorytellerGAMModuleConfiguration configuration) Future<void>
Configure the GAM module on the native SDKs.