UAPushProviderDelegate

Objective-C

@protocol UAPushProviderDelegate <NSObject>

Swift

protocol UAPushProviderDelegate : NSObjectProtocol

Protocol for bridging push provider functionality with the SDK.

  • Enables/disables sending the device token during channel registration.

    Declaration

    Objective-C

    @property (nonatomic) BOOL pushTokenRegistrationEnabled;

    Swift

    var pushTokenRegistrationEnabled: Bool { get set }
  • Returns YES if user notifications are configured and enabled for the device.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL userPushNotificationsAllowed;

    Swift

    var userPushNotificationsAllowed: Bool { get }
  • Returns YES if background push is enabled and configured for the device. Used as the channel’s ‘background’ flag.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL backgroundPushNotificationsAllowed;

    Swift

    var backgroundPushNotificationsAllowed: Bool { get }
  • Toggle the Airship auto-badge feature.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isAutobadgeEnabled) BOOL autobadgeEnabled;

    Swift

    var isAutobadgeEnabled: Bool { get set }
  • The current badge number used by the device and on the Airship server.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger badgeNumber;

    Swift

    var badgeNumber: Int { get set }
  • Enables/Disables quiet time

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isQuietTimeEnabled) BOOL quietTimeEnabled;

    Swift

    var isQuietTimeEnabled: Bool { get set }
  • Quiet time settings for this device.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDictionary *quietTime;

    Swift

    var quietTime: [AnyHashable : Any]? { get }
  • Time Zone for quiet time.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSTimeZone *_Nonnull timeZone;

    Swift

    var timeZone: TimeZone { get set }
  • The device token for this device, as a hex string.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *deviceToken;

    Swift

    var deviceToken: String? { get }