UsherSDKNotification

public enum UsherSDKNotification : String, RawRepresentable

UsherSDKNotification is a struct that contains all the new defined Names for NSNotification used in UsherSDK.

When you need to do something after some specific events happen, you can register for specific UsherSDKNotifications.

An NSNotification object (referred to as a notification) contains a name, an object, and an optional dictionary. The name is a tag identifying the notification. The object is any object that the poster of the notification wants to send to observers of that notification—typically the object that posted the notification itself. The dictionary may contain additional information about the event.

You can read more about Notification from Apple’s Documentation: Notification Programming Topics

  • Posted when UsherSDK acquires access token to the server for the first time e.g after badge recovery, Badge Invite, Get Badge by Credentials

    Declaration

    Swift

    case usherSDKUserDidAuthenticateWithServer
  • Posted when UsherSDK loses access token to the server. e.g expiration, device revocation

    Declaration

    Swift

    case usherSDKUserDeauthenticatedWithServer
  • Posted when all user data on SDK side is deleted due to non-recoverable error or security issue. e.g. passcode attempts exhausted, access and refresh token expired, client certificate expired.

    Declaration

    Swift

    case usherSDKDidDeleteUserData
  • Posted when the current server changes.

    Declaration

    Swift

    case usherSDKServerDidChange
  • Posted when a server is deleted.

    Declaration

    Swift

    case usherSDKServerDidDelete
  • Posted when a badge is deleted by the SDK without user intent. e.g. Usher Network was deleted by admin, badge was revoked from this device by user.

    Declaration

    Swift

    case usherSDKDidDeleteBadge
  • Posted when recovered badges exceed limitation

    Declaration

    Swift

    case usherSDKRecoveredBadgesExceedLimitation
  • Posted when Data cache refreshed

    Declaration

    Swift

    case usherSDKDataCacheRefreshed
  • Posted when deep link badge recovery started

    Declaration

    Swift

    case notificationStartedDeeplinkBadgeRecovery
  • Posted when the server is reachable on Ethernet or WiFi

    Declaration

    Swift

    case notificationReachableOnEthernetOrWiFi
  • Posted when the server is reachable on WWAN

    Declaration

    Swift

    case notificationReachableOnWWAN
  • Posted when not reachable

    Declaration

    Swift

    case notificationNotReachable
  • Posted when Peripheral Manager did update state

    Declaration

    Swift

    case peripheralManagerDidUpdateState
  • Posted when Peripheral Manager local name set

    Declaration

    Swift

    case notificationPeripheralManagerLocalNameSet
  • Returns the NSNotification.name from UsherSDKNotification

    Declaration

    Swift

    public var name: NSNotification.Name { get }