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 provided

    Since

    Since 6.0.0.
    See more

    Declaration

    Swift

    @objc(GFYGranifyInlineView)
    public class GranifyInlineView : UIView
  • A label that defines identifying information for a GranifyInlineView

    Since

    Since 6.0.0
    See more

    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 more

    Declaration

    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 more

    Declaration

    Swift

    @objc(GFYSdkLogger)
    public class SdkLogger : NSObject
  • Represents a URL that is assigned to a PageType. This is used in order to facilitate navigation to certain areas of your application. See Configuring Granify for more information

    See more

    Declaration

    Swift

    @objc(GFYDeepLink)
    public class DeepLink : NSObject
  • Represents an order discount code

    See more

    Declaration

    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 more

    Declaration

    Swift

    @objc(GFYGranifyConfiguration)
    public class GranifyConfiguration : NSObject
  • Represents an order placed on the site.

    See more

    Declaration

    Swift

    @objc(GFYOrder)
    public class Order : NSObject
  • Contains information about a page’s type and its unique path.

    See more

    Declaration

    Swift

    @objc(GFYPageIdentifier)
    public class PageIdentifier : NSObject
  • Represents a positive monetary price value

    See more

    Declaration

    Swift

    @objc(GFYPrice)
    public class Price : NSObject, Encodable
  • Wrapper for primitive values (String, Int, Boolean or Decimal) for use in Product.customProperties. Holds a value of one type at a time.

    See more

    Declaration

    Swift

    @objc(GFYPrimitiveWrapper)
    public class PrimitiveWrapper : NSObject, Encodable
  • Wrapper for String or Int for use in Product.customProperties. Holds a value of either type, but not both. NOTE: this type has been deprecated in favour of the more useful PrimitiveWrapper

    Declaration

    Swift

    @available(*, deprecated, message: "Please use a PrimitiveWrapper instead")
    @objc(GFYStringOrIntWrapper)
    public class StringOrIntWrapper : PrimitiveWrapper
  • Represents a distinct Product with basic identifiers, price, and display information, and further optional detailed information.

    See more

    Declaration

    Swift

    @objc(GFYProduct)
    public class Product : NSObject, NSCopying, Encodable
  • Contains product review and rating information

    See more

    Declaration

    Swift

    @objc(GFYProductReviews)
    public class ProductReviews : NSObject, Encodable
  • Represents product reviews using a 1 to 5 star rating scale

    See more

    Declaration

    Swift

    @objc(GFYStarRatedProductReviews)
    public class StarRatedProductReviews : ProductReviews
  • Represents product reviews using a 0 to 100 percentile rating scale

    See more

    Declaration

    Swift

    @objc(GFYPercentRatedProductReviews)
    public class PercentRatedProductReviews : ProductReviews
  • Contains product stock information

    See more

    Declaration

    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 more

    Declaration

    Swift

    @objc(GFYSiteIdentifier)
    public class SiteIdentifier : NSObject, Codable
  • Represents a product within a wish list

    See more

    Declaration

    Swift

    @objc(GFYWishListItem)
    public class WishListItem : NSObject, Encodable