YMMECommerceReferrer class

This class contains information about the source of traffic. For example, a link to the page or screen that shows a product profile.

Instance methods

-initWithType:identifier:screen:

Initializes the instance of the YMMECommerceReferrer class with information about the source of traffic.

-initWithType:identifier:screen:

Initializes the instance of the YMMECommerceReferrer class with information about the source of traffic.

Properties

type

Traffic source type: The type of object that traffic comes from. For example: “button”, “banner”, or “href”. Allowed size: Up to 100 characters.

identifier

Traffic source ID. Allowed size: Up to 2048 characters.

screen

Traffic source screen: The screen that traffic comes from.

type

Traffic source type: The type of object that traffic comes from. For example: “button”, “banner”, or “href”. Allowed size: Up to 100 characters.

identifier

Traffic source ID. Allowed size: Up to 2048 characters.

screen

Traffic source screen: The screen that traffic comes from.

Method descriptions

-initWithType:identifier:screen:

- (instancetype)initWithType:(nullable NSString *)type
                  identifier:(nullable NSString *)identifier
                      screen:(nullable YMMECommerceScreen *)screen

Initializes the instance of the YMMECommerceReferrer class with information about the source of traffic.

Parameters:
type

Traffic source type: The type of object that traffic comes from. For example: “button”, “banner”, or “href”. Allowed size: Up to 100 characters.

identifier

Traffic source ID. Allowed size: Up to 2048 characters.

screen

Traffic source screen: The screen that traffic comes from.

type

Traffic source type: The type of object that traffic comes from. For example: “button”, “banner”, or “href”. Allowed size: Up to 100 characters.

identifier

Traffic source ID. Allowed size: Up to 2048 characters.

screen

Traffic source screen: The screen that traffic comes from.

Returns:

The YMMECommerceReferrer class instance.

Property descriptions

type

(nonatomic, copy, readonly, nullable) NSString *type

Traffic source type: The type of object that traffic comes from. For example: “button”, “banner”, or “href”. Allowed size: Up to 100 characters.

identifier

(nonatomic, copy, readonly, nullable) NSString *identifier

Traffic source ID. Allowed size: Up to 2048 characters.

screen

(nonatomic, strong, readonly, nullable) YMMECommerceScreen *screen

Traffic source screen: The screen that traffic comes from.