gpt4 book ai didi

xamarin - AppDelegate NIDAction

转载 作者:行者123 更新时间:2023-12-04 13:04:49 29 4
gpt4 key购买 nike

当我将以下覆盖添加到 AppDelegate 时:

public override void HandleAction(UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, [BlockProxy(typeof(NIDAction))] Action completionHandler)
{
}

我收到以下错误:

Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'NIDAction' could not be found (are you missing a using directive or an assembly reference?) Notifi.iOS C:\development\notifi\Notifi\Notifi\Notifi.iOS\AppDelegate.cs 119 Active



我尝试搜索有关 NIDAction 的信息,但找不到任何有用的信息 - 我可以删除此属性吗?

最佳答案

Xamarin already does it 时无需注释类型在每个本地调用的签名中。

只需这样做:

public override void HandleAction (UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, Action completionHandler)
{
....
}

关于xamarin - AppDelegate NIDAction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36761800/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com