UAAppIntegration
@objc
@MainActor
public final class UAAppIntegration : NSObject
Application hooks required by Airship. If automaticSetupEnabled is enabled
(enabled by default), Airship will automatically integrate these calls into
the application by swizzling methods. If automaticSetupEnabled is disabled,
the application must call through to every method provided by this class.
-
Must be called by the UIApplicationDelegate’s application:performFetchWithCompletionHandler:.
Declaration
Swift
@objc(application:performFetchWithCompletionHandler:) @MainActor public class func application( _ application: UIApplication, performFetchWithCompletionHandler completionHandler: @Sendable @escaping ( UIBackgroundFetchResult ) -> Void )Parameters
applicationThe application
completionHandlerThe completion handler.
-
Must be called by the UIApplicationDelegate’s application:didRegisterForRemoteNotificationsWithDeviceToken:.
Declaration
Swift
@objc(application:didRegisterForRemoteNotificationsWithDeviceToken:) @MainActor public class func application( _ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data )Parameters
applicationThe application
deviceTokenThe device token.
-
Must be called by the UIApplicationDelegate’s application:didFailToRegisterForRemoteNotificationsWithError:.
Declaration
Swift
@objc @MainActor public class func application( _ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: any Error )Parameters
applicationThe application
errorThe error.
-
application(_:AsynchronousdidReceiveRemoteNotification: ) Must be called by the UIApplicationDelegate’s application:didReceiveRemoteNotification:fetchCompletionHandler:.
Declaration
Swift
@objc(application:didReceiveRemoteNotification:fetchCompletionHandler:) @MainActor public class func application( _ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any] ) async -> UIBackgroundFetchResultParameters
applicationThe application
userInfoThe remote notification.
-
Must be called by the WKExtensionDelegate’s didRegisterForRemoteNotificationsWithDeviceToken:.
-
Must be called by the WKExtensionDelegate’s didFailToRegisterForRemoteNotificationsWithError:.
-
Must be called by the WKExtensionDelegate’s didReceiveRemoteNotification:fetchCompletionHandler:.
-
userNotificationCenter(_:AsynchronouswillPresent: ) Must be called by the UNUserNotificationDelegate’s userNotificationCenter:willPresentNotification:withCompletionHandler.
Declaration
Swift
@objc(userNotificationCenter:willPresentNotification:withCompletionHandler:) @MainActor public class func userNotificationCenter( _ center: UNUserNotificationCenter, willPresent notification: UNNotification ) async -> UNNotificationPresentationOptionsParameters
centerThe notification center.
notificationThe notification.
-
userNotificationCenter(_:AsynchronousdidReceive: ) Must be called by the UNUserNotificationDelegate’s userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler.
Declaration
Swift
@objc(userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:) @MainActor public class func userNotificationCenter( _ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse ) asyncParameters
centerThe notification center.
responseThe notification response.
View on GitHub