Validation Utils
object ValidationUtils
Useful validation methods for checking user input.
Functions
Link copied to clipboard
Link copied to clipboard
Validates an email address. Note that passing this stage of validation allows an email address to be sent to Braze server, which may perform additional validation.
Link copied to clipboard
Link copied to clipboard
fun isValidLogCustomEventInput(eventName: String?, serverConfigStorageProvider: ServerConfigStorageProvider): Boolean
Validates the event name for the custom event. Invalid event names are null or in the blocklist.
Link copied to clipboard
fun isValidLogPurchaseInput(productId: String?, currencyCode: String?, price: BigDecimal?, quantity: Int, serverConfigStorageProvider: ServerConfigStorageProvider): Boolean
Validates the log purchase event parameters.
Link copied to clipboard
Performs basic validation on the input phone number. Note that passing this stage of validation allows a phone number to be sent to Braze server, which may perform additional validation.
Link copied to clipboard
Validates the campaign id and page id for the push story click. Neither can be null or blank.