[usernotification] Add nullability to (generated and manual) bindings (#14941)

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
This commit is contained in:
TJ Lambert 2022-05-12 12:15:13 -05:00 коммит произвёл GitHub
Родитель fcf1a19631
Коммит 6993eff5bf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -7,6 +7,8 @@
// Copyright 2016 Xamarin Inc. All rights reserved.
//
#nullable enable
#if !TVOS
using System;
using Foundation;
@ -14,7 +16,7 @@ using Foundation;
namespace UserNotifications {
public partial class UNNotificationAttachment {
public static UNNotificationAttachment FromIdentifier (string identifier, NSUrl url, UNNotificationAttachmentOptions attachmentOptions, out NSError error)
public static UNNotificationAttachment? FromIdentifier (string identifier, NSUrl url, UNNotificationAttachmentOptions attachmentOptions, out NSError? error)
{
return FromIdentifier (identifier, url, attachmentOptions?.Dictionary, out error);
}