ApptimizeInstantUpdateOrWinnerInfo
@protocol ApptimizeInstantUpdateOrWinnerInfo <NSObject>
Information about a single winning A/B test or instant update this device will display.
-
Declaration
Objective-C
- (BOOL)isInstantUpdate;
Swift
func isInstantUpdate() -> Bool
Return Value
Returns YES if this info represents an instant update, otherwise this object represents a winning experiment.
-
Declaration
Objective-C
- (nonnull NSString *)winningExperimentName;
Swift
func winningExperimentName() -> String
Return Value
The experiment name of the winning experiment.
-
Declaration
Objective-C
- (nonnull NSNumber *)winningExperimentID;
Swift
func winningExperimentID() -> NSNumber
Return Value
The experiment id of the winning experiment.
-
Declaration
Objective-C
- (nonnull NSString *)instantUpdateName;
Swift
func instantUpdateName() -> String
Return Value
The name of the instant update.
-
Declaration
Objective-C
- (nonnull NSNumber *)instantUpdateID;
Swift
func instantUpdateID() -> NSNumber
Return Value
The id of the instant update.
-
Declaration
Objective-C
- (nonnull NSString *)winningVariantName;
Swift
func winningVariantName() -> String
Return Value
If this is a winner, then this is the name of the winning variant. Otherwise it is null.
-
Declaration
Objective-C
- (nonnull NSNumber *)winningVariantID;
Swift
func winningVariantID() -> NSNumber
Return Value
If this is a winner, then this is the unique numeric ID of the winning variant. Otherwise it is null.
-
Declaration
Objective-C
- (nullable NSDate *)startDate;
Swift
func startDate() -> Date?
Return Value
The date this device would start showing the winning variant or instant update.
-
Declaration
Objective-C
- (nullable NSString *)userID;
Swift
func userID() -> String?
Return Value
The user id of the user that will be shown the winning variant or instant update. If the user has not been set then the anonymous user id is used.
-
Declaration
Objective-C
- (nonnull NSString *)anonymousUserID;
Swift
func anonymousUserID() -> String
Return Value
The anonymous user id currently assigned to this apptimize instance.