initialize method

Future<void> initialize({
  1. required String apiKey,
  2. String? branding,
})

Initialize HoverUssd with branding and logo information.

apiKey is the Hover API key. branding is the name of the app. logo is the id of the app's logo in ressource. notificationLogo is the id of the app's logo in ressource.

Implementation

Future<void> initialize({
  required String apiKey,
  String? branding,
  String? logo,
  String? notificationLogo,
}) async {
  await _methodChannel.invokeMethod("Initialize", {
    "branding": branding ?? "Flutter App",
    "logo": logo ?? "ic_launcher",
    "notificationLogo": notificationLogo ?? "ic_launcher",
    "apiKey": apiKey,
  });
}