createToastNotification static method

ToastNotification createToastNotification(
  1. Pointer<COMObject> content
)

Implementation

static ToastNotification createToastNotification(Pointer<COMObject> content) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IToastNotificationFactory);

  try {
    final result = IToastNotificationFactory.fromRawPointer(activationFactory)
        .createToastNotification(content);
    return ToastNotification.fromRawPointer(result);
  } finally {
    free(activationFactory);
  }
}