Version: 2020.1
Method group is Obsolete

LocalNotification

class in UnityEngine.iOS

切换到手册
Obsolete

描述

iOS.LocalNotification 是 Apple UIKit 框架中 UILocalNotification 类的封装器,仅适用于 iPhone/iPad/iPod Touch。

它表示应用程序可安排在特定日期和时间向其用户呈现的通知。 操作系统负责在指定时间发送通知。 本地通知与远程通知类似,但它在本地安排和发送,不需要连接到远程服务器。

使用 NotificationServices 类安排和处理本地通知。

iOS Notification Services API 已弃用,将从 Unity 的未来版本中移除。请考虑使用 "Mobile Notifications" 包(在 Unity package manager 中提供),它实现 iOS UserNotifications framework.