R89SDK class final

This class is an entry point to the RF89 SDK.

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 Properties

adFactory RefineryAdFactory
An entry point to create Ad widgets.
no setter
routeObserver RouteObserver<Route>
A NavigatorObserver that uses by the R89SDK to automatically handle lifecycle of created advertisements. When a route is popped all advertisements related to that route are get destroyed.
no setter

Static Methods

initialize({required String publisherId, required String appId, InitializationEvents? initializationEvents}) Future<void>
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.
initializeWithConfigBuilder({required String publisherId, required String appId, required ConfigBuilder configBuilder, InitializationEvents? initializationEvents}) Future<void>
This is to use Manual Configuration. You must pass a ConfigBuilder to use this method. Ensure you follow COMMENT Link(Guide to manual configuration) to set all the required values in the ConfigBuilder.
resetConsent() Future<void>
Deletes all local data saved about the CMP. Next time the CMP is asked if it needs to show or not, it will require showing since all consent that was previously given has been deleted.
setDebug({bool getLocalFakeData = true, bool forceCMP = false, bool useProductionAuctionServer = false}) Future<void>
Wheather getLocalFakeData is set to true, makes the SDK debug mode which means:
setLogLevel(LogLevel level) Future<void>