GoogleUserMessagingPlatform Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
SDK version string, of a form “major.minor.patch”.
Declaration
Swift
let Version: String
Objective-C
extern NS_SWIFT_NAME(Version) NSString *const UMPVersionString
-
Error domain for all SDK errors.
Declaration
Swift
let UMPErrorDomain: String
Objective-C
extern NSErrorDomain _Nonnull const UMPErrorDomain
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe User Messaging Platform (UMP) SDK provides two global constants: \u003ccode\u003eUMPVersionString\u003c/code\u003e and \u003ccode\u003eUMPErrorDomain\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPVersionString\u003c/code\u003e represents the SDK's version in the format "major.minor.patch" and is available in both Swift and Objective-C.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPErrorDomain\u003c/code\u003e is used for all SDK-related errors and can be accessed from Swift and Objective-C code.\u003c/p\u003e\n"]]],["The content defines two globally available constants within an SDK: `UMPVersionString` and `UMPErrorDomain`. `UMPVersionString` provides the SDK's version number in \"major.minor.patch\" format, accessible as a `String` in Swift and `NSString` in Objective-C. `UMPErrorDomain` serves as the designated error domain for all errors originating from the SDK, available as `String` in Swift and `NSErrorDomain` in Objective-C. Both constants are declared for use in Swift and Objective-C.\n"],null,["# GoogleUserMessagingPlatform Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [UMPVersionString](#/c:@UMPVersionString)\n\n `\n ` \n SDK version string, of a form \"major.minor.patch\". \n\n #### Declaration\n\n Swift \n\n let Version: String\n\n Objective-C \n\n extern NS_SWIFT_NAME(Version) NSString *const UMPVersionString\n\n- `\n ``\n ``\n `\n\n ### [UMPErrorDomain](#/c:@UMPErrorDomain)\n\n `\n ` \n Error domain for all SDK errors. \n\n #### Declaration\n\n Swift \n\n let UMPErrorDomain: String\n\n Objective-C \n\n extern NSErrorDomain _Nonnull const UMPErrorDomain"]]