getNotificationManager method

  1. @override
NotificationManager getNotificationManager(
  1. LocationManager locationManager
)
override

NotificationManager instance, which could be used for working with notifications when detecting beacons. Notification locationManager LocationManager instance Returns NotificationManager instance

Example:

// Get NotificationManager for notifications
if (_locationManager != null) {
 _notificationManager = _sdk?.getNotificationManager(_locationManager!);
 if (_notificationManager != null) {
   print('NotificationManager successfully initialized');
 }
}

Implementation

@override
NotificationManager getNotificationManager(LocationManager locationManager) {
    final _getNotificationManagerFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>),
        Pointer<Void> Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_NavigineSdk_getNotificationManager__LocationManager'));
    final _locationManagerHandle = navigine_sdk_flutter_LocationManager_ToFfi(locationManager);
    final _handle = this.handle;
    final __resultHandle = _getNotificationManagerFfi(_handle, _locationManagerHandle);
    navigine_sdk_flutter_LocationManager_ReleaseFfiHandle(_locationManagerHandle);
    final _result = navigine_sdk_flutter_NotificationManager_FromFfi(__resultHandle);
    navigine_sdk_flutter_NotificationManager_ReleaseFfiHandle(__resultHandle);
    return _result;
}