initialize static method
Future<void>
initialize({
- required String publisherId,
- required String appId,
- required bool singleTag,
- InitializationEvents? initializationEvents,
This is to use Auto Configuration where the SDK will fetch the configuration from the server, and apply those to itself. It still requires using the RefineryAdFactory to place the ads in the views.
If you used setDebug, you are not going to get your info but a fake PublisherData because
we assume you are testing. We don't recommend using real data while testing; it can be done
through initializeWithConfigBuilder
.
publisherId
This will be used to fetch the configuration from the server.
appId
COMMENT
Implementation
static Future<void> initialize({
required String publisherId,
required String appId,
required bool singleTag,
InitializationEvents? initializationEvents,
}) =>
R89SdkPlatformInterface.instance().initialize(
InitializationEntity(publisherId: publisherId, appId: appId, singleLine: singleTag),
initializationEvents);