createToastNotification static method
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();
}
}