init static method

dynamic init(
  1. PublisherInfo publisherInfo, {
  2. HashMap<String, dynamic>? extraProperties,
})

Initializes the Taboola SDK with the provided PublisherInfo and optional extra properties.

Use this method to configure the Taboola SDK with your PublisherInfo. You can also provide extra properties as a HashMap<String, dynamic>, but it is not recommended to set them here. Instead, consider using the setGlobalExtraProperties method to set global extra properties for the Taboola SDK.

publisherInfo: Information about your Taboola publisher account. extraProperties: Optional extra properties to configure the Taboola SDK.

Implementation

static init(PublisherInfo publisherInfo,
    {HashMap<String, dynamic>? extraProperties}) {
  HashMap<String, dynamic> extraProp = extraProperties == null
      ? new HashMap<String, dynamic>()
      : extraProperties;

  Taboola.setGlobalExtraProperties(extraProp);
  Taboola._publisherInfo = publisherInfo;
}