Classes
The following classes are available globally.
-
A view that an inline campaign can be displayed into. Handlers to expand and collapse the view must be passed in so that inline views can be displayed. A
GranifyInlineViewLabel
must be providedSince
Since 6.0.0.Declaration
Swift
@objc(GFYGranifyInlineView) public class GranifyInlineView : UIView
-
Declaration
Swift
@objc(GFYGranifyInlineViewLabel) public class GranifyInlineViewLabel : NSObject
-
The entry point for all Granify SDK API methods. All methods on the API are exposed as class functions on this class.
Example:
Granify.activateGranify(...)
See the Installation Checklist and When to call methods for more information on how and when to implement these API methods
See moreDeclaration
Swift
@objc(GFYGranify) public class Granify : NSObject
-
Not intended for public use; this class and its methods are exposed due to technical requirements but are not intended to be used externally. Do not interact with this class or its constituents.
See moreDeclaration
Swift
@objc(GFYSdkLogger) public class SdkLogger : NSObject
-
Represents a
See moreURL
that is assigned to aPageType
. This is used in order to facilitate navigation to certain areas of your application. See Configuring Granify for more informationDeclaration
Swift
@objc(GFYDeepLink) public class DeepLink : NSObject
-
Represents an order discount code
See moreDeclaration
Swift
@objc(GFYDiscountCode) public class DiscountCode : NSObject, Encodable
-
The general configuration object used to gather all info to activate Granify
This object will tell Granify who you are (with forSite and optionally clientSiteId), and how we should navigate to various parts of your app. Many messages will need to direct the shopper to a different part of the app, particularly to specific product pages, but also to cart or even informational pages. This is how you tell Granify how to do that within your app.
See Configuring Granify for more details.
See moreDeclaration
Swift
@objc(GFYGranifyConfiguration) public class GranifyConfiguration : NSObject
-
Represents an order placed on the site.
See moreDeclaration
Swift
@objc(GFYOrder) public class Order : NSObject
-
Contains information about a page’s type and its unique path.
See moreDeclaration
Swift
@objc(GFYPageIdentifier) public class PageIdentifier : NSObject
-
Represents a positive monetary price value
See moreDeclaration
Swift
@objc(GFYPrice) public class Price : NSObject, Encodable
-
Wrapper for primitive values (
See moreString
,Int
,Boolean
orDecimal
) for use inProduct.customProperties
. Holds a value of one type at a time.Declaration
Swift
@objc(GFYPrimitiveWrapper) public class PrimitiveWrapper : NSObject, Encodable
-
Wrapper for
String
orInt
for use inProduct.customProperties
. Holds a value of either type, but not both. NOTE: this type has been deprecated in favour of the more usefulPrimitiveWrapper
Declaration
Swift
@available(*, deprecated, message: "Please use a PrimitiveWrapper instead") @objc(GFYStringOrIntWrapper) public class StringOrIntWrapper : PrimitiveWrapper
-
Contains product review and rating information
See moreDeclaration
Swift
@objc(GFYProductReviews) public class ProductReviews : NSObject, Encodable
-
Represents product reviews using a 1 to 5 star rating scale
See moreDeclaration
Swift
@objc(GFYStarRatedProductReviews) public class StarRatedProductReviews : ProductReviews
-
Represents product reviews using a 0 to 100 percentile rating scale
See moreDeclaration
Swift
@objc(GFYPercentRatedProductReviews) public class PercentRatedProductReviews : ProductReviews
-
Contains product stock information
See moreDeclaration
Swift
@objc(GFYProductStock) public class ProductStock : NSObject, Codable
-
Unique site identifier
This is a 5-character, case-sensitive, alphanumeric string provided to you by Granify.
See moreDeclaration
Swift
@objc(GFYSiteIdentifier) public class SiteIdentifier : NSObject, Codable
-
Represents a product within a wish list
See moreDeclaration
Swift
@objc(GFYWishListItem) public class WishListItem : NSObject, Encodable