UNTimeIntervalNotificationTrigger

3589 ワード

https://developer.apple.com/documentation/usernotifications/untimeintervalnotificationtrigger
"A trigger condition that causes the system to deliver a notification after the amount of time you specify elapses."
トリガ条件は、システムが1時間具体化された後に注意事項を伝達するために使用されます.
Declaration
class UNTimeIntervalNotificationTrigger : UNNotificationTrigger
Overview
数秒以内にローカルの注意事項を渡すように手配する場合は、UNTimeIntervalNotificationTriggerオブジェクトを作成できます.タイマーを実装するには、トリガのこのタイプを使用します.
Listing 1はトリガを生成し、30秒後に注意事項を送信している.
Listing 1 Creating a trigger that fires in 30 minutes
// Fire in 30 minutes (60 seconds times 30)
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: (30*60), repeats: false)
See Also
Triggers
UNCalendarNotificationTrigger
トリガ条件、トリガシステムが特定の日付と時間に伝達される注意事項.
https://developer.apple.com/documentation/usernotifications/uncalendarnotificationtrigger
https://velog.io/@panther222128/UNCalendarNotificationTrigger
UNLocationNotificationTrigger
トリガ条件は、デバイスが特定の地理的領域に入ったり離れたりすると、システムが移動して注意事項を送信します.
https://developer.apple.com/documentation/usernotifications/unlocationnotificationtrigger
https://velog.io/@panther222128/UNLocationNotificationTrigger
UNPushNotificationTrigger
ターゲットアプリケーションが送信されたターゲットアプリケーションサービス(APNs)のトリガ条件を示す.
https://developer.apple.com/documentation/usernotifications/unpushnotificationtrigger
https://velog.io/@panther222128/UNPushNotificationTrigger
UNNotificationTrigger
ローカルまたはリモート制御プログラムが転送するサブクラスの通常の動作をトリガーします.
https://developer.apple.com/documentation/usernotifications/unnotificationtrigger
https://velog.io/@panther222128/UNNotificationTrigger