PUSH
@objc(SFMCSdkPUSH)
public final class PUSH : NSObject, PushInterface, SFMCModuleApi
Push module
-
Declaration
Swift
@objc public func getStatus() -> ModuleStatus
-
Declaration
Swift
public func getIdentity() -> ModuleIdentity?
-
Declaration
Swift
public func tearDown()
-
Declaration
Swift
public func contactKey() -> String?
-
Declaration
Swift
public func addTag(_ tag: String) -> Bool
-
Declaration
Swift
public func addTags(_ tags: [Any]) -> Set<AnyHashable>?
-
Declaration
Swift
public func removeTag(_ tag: String) -> Bool
-
Declaration
Swift
public func tags() -> Set<AnyHashable>?
-
Declaration
Swift
public func setDeviceToken(_ deviceToken: Data)
-
Declaration
Swift
public func setDebugLoggingEnabled(_ enabled: Bool)
-
Declaration
Swift
public func attributes() -> [AnyHashable : Any]?
-
Declaration
Swift
public func deviceToken() -> String?
-
Declaration
Swift
public func accessToken() -> String?
-
Declaration
Swift
public func deviceIdentifier() -> String?
-
Declaration
Swift
public func setNotificationRequest(_ request: UNNotificationRequest)
-
Declaration
Swift
public func notificationRequest() -> UNNotificationRequest?
-
Declaration
Swift
public func setNotificationUserInfo(_ userInfo: [AnyHashable : Any] = [:])
-
Declaration
Swift
public func notificationUserInfo() -> [AnyHashable : Any]
-
Declaration
Swift
public func setPushEnabled(_ pushEnabled: Bool)
-
Declaration
Swift
public func pushEnabled() -> Bool
-
Declaration
Swift
public func refresh(fetchCompletionHandler completionHandler: ((UIBackgroundFetchResult) -> Void)? = nil) -> Bool
-
Register a callback that will be notified when Registration related events happen
@param registrationCallback closure to be provided when registration event occurs
Declaration
Swift
public func setRegistrationCallback(_ registrationCallback: @escaping (Dictionary<AnyHashable, Any>) -> Void)
-
Removes the registration callback
Declaration
Swift
public func unsetRegistrationCallback()
-
Declaration
Swift
public func setSignedString(_ signedString: String?) -> Bool
-
Declaration
Swift
public func signedString() -> String?
-
Declaration
Swift
public func setEventDelegate(_ delegate: InAppMessageEventDelegate?)
-
Declaration
Swift
public func messageId(forMessage: [AnyHashable : Any]) -> String?
-
Declaration
Swift
public func showInAppMessage(messageId: String)
-
Declaration
Swift
public func setInAppMessage(fontName: String?) -> Bool
-
Declaration
Swift
public func getAllMessages() -> [Any]?
-
Declaration
Swift
public func getUnreadMessages() -> [Any]?
-
Declaration
Swift
public func getReadMessages() -> [Any]?
-
Declaration
Swift
public func getDeletedMessages() -> [Any]?
-
Declaration
Swift
public func getAllMessagesCount() -> UInt
-
Declaration
Swift
public func getUnreadMessagesCount() -> UInt
-
Declaration
Swift
public func getReadMessagesCount() -> UInt
-
Declaration
Swift
public func getDeletedMessagesCount() -> UInt
-
Declaration
Swift
public func markMessageRead(_ messageDictionary: [AnyHashable : Any]) -> Bool
-
Declaration
Swift
public func markMessageDeleted(_ messageDictionary: [AnyHashable : Any]) -> Bool
-
Declaration
Swift
public func markMessageWithIdRead(messageId: String) -> Bool
-
Declaration
Swift
public func markMessageWithIdDeleted(messageId: String) -> Bool
-
Declaration
Swift
public func markAllMessagesRead() -> Bool
-
Declaration
Swift
public func markAllMessagesDeleted() -> Bool
-
Declaration
Swift
public func refreshMessages() -> Bool
-
Declaration
Swift
public func inboxMessagesTableViewDataSourceFor(tableView: UITableView) -> InboxMessagesDataSource?
-
Declaration
Swift
public func inboxMessagesTableViewDelegateFor(tableView: UITableView, dataSource: InboxMessagesDataSource) -> InboxMessagesDelegate?
-
Declaration
Swift
public func setPiIdentifier(_ identifier: String?) -> Bool
-
Declaration
Swift
public func piIdentifier() -> String?
-
Declaration
Swift
public func trackMessageOpened(_ inboxMessage: [AnyHashable : Any])
-
Declaration
Swift
public func trackPageView(url: String, title: String?, item: String?, search: String?)
-
Declaration
Swift
public func setLocationDelegate(_ delegate: LocationDelegate?)
-
Declaration
Swift
public func regionFrom(dictionary: [AnyHashable : Any]) -> CLRegion?
-
Declaration
Swift
public func locationEnabled() -> Bool
-
Declaration
Swift
public func startWatchingLocation()
-
Declaration
Swift
public func stopWatchingLocation()
-
Declaration
Swift
public func watchingLocation() -> Bool
-
Declaration
Swift
public func lastKnownLocation() -> [String : String]?
-
Declaration
Swift
public func setURLHandlingDelegate(_ delegate: URLHandlingDelegate?)
-
Declaration
Swift
public func resetDataPolicy() -> Bool