PushNotificationsStatic
@objc
public final class PushNotificationsStatic : NSObjectA static equivalent of the PushNotifications type.
- 
                  
                  Start PushNotifications service. Precondition instanceIdshould not be nil.DeclarationSwift @objc public static func start(instanceId: String)ParametersinstanceIdPushNotifications instance id. 
- 
                  
                  Register to receive remote notifications via Apple Push Notification service. Convenience method is using .alert,.sound, and.badgeas default authorization options.DeclarationSwift @objc public static func registerForRemoteNotifications()
- 
                  
                  Register to receive remote notifications via Apple Push Notification service. 
- 
                  
                  Register to receive remote notifications via Apple Push Notification service. DeclarationSwift @objc public static func registerForRemoteNotifications(options: NSApplication.RemoteNotificationType)ParametersoptionsA bit mask specifying the types of notifications the app accepts. See NSApplication.RemoteNotificationType for valid bit-mask values. 
- 
                  
                  Set user id. DeclarationSwift @objc public static func setUserId(_ userId: String, tokenProvider: TokenProvider, completion: @escaping (Error?) -> Void)ParametersuserIdUser id. tokenProviderToken provider that will be used to generate the token for the user that you want to authenticate. completionThe block to execute after attempt to set user id has been made. 
- 
                  
                  Disable Beams service. This will remove everything associated with the Beams from the device and Beams server. DeclarationSwift @objc public static func stop(completion: @escaping () -> Void)ParameterscompletionThe block to execute after the device has been deleted from the server. 
- 
                  
                  Clears all the state on the SDK leaving it in the empty started state. This will remove the current user and all the interests associated with it from the device and Beams server. Device is now in a fresh state, ready for new subscriptions or user being set. DeclarationSwift @objc public static func clearAllState(completion: @escaping () -> Void)ParameterscompletionThe block to execute after the device has been deleted from the server. 
- 
                  
                  Register device token with PushNotifications service. Precondition deviceTokenshould not be nil.DeclarationSwift @objc public static func registerDeviceToken(_ deviceToken: Data)ParametersdeviceTokenA token that identifies the device to APNs. 
- 
                  
                  Subscribes the device to an interest. Precondition interestshould not be nil.Throws An error of type InvalidInterestErrorDeclarationSwift @objc public static func addDeviceInterest(interest: String) throwsParametersinterestInterest that you want to subscribe your device to. 
- 
                  
                  Sets the subscriptions state for the device. Any interests not in the set will be unsubscribed from, so this will replace the interest set by the one provided. Precondition interestsshould not be nil.Throws An error of type MultipleInvalidInterestsErrorDeclarationSwift @objc public static func setDeviceInterests(interests: [String]) throwsParametersinterestsInterests that you want to subscribe your device to. 
- 
                  
                  Unsubscribe the device from an interest. Precondition interestshould not be nil.Throws An error of type InvalidInterestErrorDeclarationSwift @objc public static func removeDeviceInterest(interest: String) throwsParametersinterestInterest that you want to unsubscribe your device from. 
- 
                  
                  Unsubscribes the device from all the interests. - Tag: clearDeviceInterests
 DeclarationSwift @objc public static func clearDeviceInterests() throws
- 
                  
                  Get the interest subscriptions that the device is currently subscribed to. DeclarationSwift @objc public static func getDeviceInterests() -> [String]?Return ValueArray of interests 
- 
                  
                  Handle Remote Notification. DeclarationSwift @discardableResult @objc public static func handleNotification(userInfo: [AnyHashable : Any]) -> RemoteNotificationTypeParametersuserInfoRemote Notification payload. 
 View on GitHub
View on GitHub PushNotificationsStatic Class Reference
        PushNotificationsStatic Class Reference