UAAccountEventTemplate

@interface UAAccountEventTemplate : NSObject

A UAAccountEventTemplate represents a custom account event template for the application.

  • The event’s value. The value must be between -2^31 and 2^31 - 1 or it will invalidate the event.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSDecimalNumber *eventValue;

    Swift

    var eventValue: NSDecimalNumber? { get set }
  • The event’s transaction ID. The transaction ID’s length must not exceed 255 characters or it will invalidate the event.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *transactionID;

    Swift

    var transactionID: String? { get set }
  • The event’s category. The category’s length must not exceed 255 characters or it will invalidate the event.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *category;

    Swift

    var category: String? { get set }
  • Factory method for creating a registered account event template.

    Declaration

    Objective-C

    + (nonnull instancetype)registeredTemplate;

    Swift

    class func registered() -> Self
  • Factory method for creating a registered account event template with a value from a string.

    Declaration

    Objective-C

    + (nonnull instancetype)registeredTemplateWithValueFromString:
        (nullable NSString *)eventValue;

    Swift

    class func registeredTemplateWithValue(from eventValue: String?) -> Self

    Parameters

    eventValue

    The value of the event as a string. The value must be a valid number between -2^31 and 2^31 - 1 or it will invalidate the event.

  • Factory method for creating a registered account event template with a value.

    Declaration

    Objective-C

    + (nonnull instancetype)registeredTemplateWithValue:
        (nullable NSNumber *)eventValue;

    Swift

    class func registeredTemplate(withValue eventValue: NSNumber?) -> Self

    Parameters

    eventValue

    The value of the event. The value must be between -2^31 and 2^31 - 1 or it will invalidate the event.

  • Creates the custom account event.

    Declaration

    Objective-C

    - (nonnull UACustomEvent *)createEvent;

    Swift

    func createEvent() -> UACustomEvent