initialize static method
Initializes Rokt SDK
Initialize the Rokt SDK prior to using it. The recommended way of calling the initialize method is early in the application.
- Parameters:
- roktTagId: The tag id provided by Rokt, associated with your account.
- appVersion: App version string
- fontFilePathMap: Optional. A map of custom font postscript name to font file. Eg: "Arial-bold": "fonts/Arial-Bold.ttf"
Implementation
static Future<void> initialize(String roktTagId,
{String appVersion = '',
Map<String, String> fontFilePathMap = const {}}) async {
await RoktSdkController.instance.initialize(
roktTagId: roktTagId,
appVersion: appVersion,
fontFilePathMap: fontFilePathMap);
}