createToastNotification static method

ToastNotification createToastNotification(
  1. Pointer<COMObject> content
)

Implementation

static ToastNotification createToastNotification(Pointer<COMObject> content) {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IToastNotificationFactory);
  final object =
      IToastNotificationFactory.fromRawPointer(activationFactoryPtr);

  try {
    final result = object.createToastNotification(content);
    return ToastNotification.fromRawPointer(result);
  } finally {
    object.release();
  }
}