Functions

The following functions are available globally.

  • Notification sources A notification source represents how the push was sent from Batch: via the Transactional API, or using a Push Campaign

    Declaration

    Objective-C

    typedef NS_ENUM(NSUInteger, BatchOptOutNetworkErrorPolicy) {
        /**
         Ignore the error and proceed with the opt-out.
         */
        BatchOptOutNetworkErrorPolicyIgnore,
        
        /**
         Cancel the opt-out: please call the opt-out method again to retry.
         */
        BatchOptOutNetworkErrorPolicyCancel,
    }
  • Remote notification types wrapper. Wraps iOS remote notification types in a compatible way.

    Declaration

    Objective-C

    int NS_OPTIONS(NSUInteger, BatchNotificationType)
  • User data editor error codes

    Declaration

    Objective-C

    int NS_ERROR_ENUM(BatchUserDataEditorErrorDomain, BatchUserDataEditorError)