PyzeContent

@interface PyzeContent : PyzeCustomEvent

PyzeContent

Subclass of PyzeCustomEvent class used post details of the events related to Content.

Since

v1.0.0
  • Post details of the content viewed.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postViewed:(nonnull NSString *)contentName
                   category:(nonnull NSString *)categoryName
        withUniqueContentId:(nonnull NSString *)contentId
             withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postViewed(_ contentName: String, category categoryName: String, withUniqueContentId contentId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    contentName

    Content name.

    categoryName

    Category of the content.

    contentId

    Content identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of content searched

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postSearched:(nonnull NSString *)searchString
          withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postSearched(_ searchString: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    searchString

    Search string

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of the content rating.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postRatedOn5PointScale:(nonnull NSString *)contentName
                          category:(nonnull NSString *)categoryName
               withUniqueContentId:(nonnull NSString *)contentId
                     contentRating:(nonnull NSDecimalNumber *)rating
                    withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postRatedOn5PointScale(_ contentName: String, category categoryName: String, withUniqueContentId contentId: String, contentRating rating: NSDecimalNumber, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    contentName

    Content name.

    categoryName

    Category name of the content.

    contentId

    Content identifier.

    rating

    Rating value.

    attributes

    Additional custom attributes app would like to share with server.

  • Post detials if content is thumbs up.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postRatedThumbsUp:(nonnull NSString *)contentName
                     category:(nonnull NSString *)categoryName
          withUniqueContentId:(nonnull NSString *)contentId
               withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postRatedThumbsUp(_ contentName: String, category categoryName: String, withUniqueContentId contentId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    contentName

    Content name.

    categoryName

    Category of the content.

    contentId

    Content id details.

    attributes

    Additional custom attributes app would like to share with server.

  • Post detials of the content is thumbs down.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postRatedThumbsDown:(nonnull NSString *)contentName
                       category:(nonnull NSString *)categoryName
            withUniqueContentId:(nonnull NSString *)contentId
                 withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postRatedThumbsDown(_ contentName: String, category categoryName: String, withUniqueContentId contentId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    contentName

    Content name.

    categoryName

    Category of the content.

    contentId

    Content id details.

    attributes

    Additional custom attributes app would like to share with server.