getNotificationManager method
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 __resultHandle = _getNotificationManagerFfi(this.ptr, LocationManager$Impl.getNativePtr(locationManager));
final _result = NotificationManager$Impl.fromNativePtr(__resultHandle);
exception.checkCallResult();
return _result;
}