PyzeMedia

@interface PyzeMedia : PyzeCustomEvent

PyzeMedia

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

Since

v3.0.5
  • Post details of the media played.

    Since

    v3.0.5

    Declaration

    Objective-C

    + (void)postPlayedMedia:(nonnull NSString *)contentName
                  mediaType:(nonnull NSString *)type
                   category:(nonnull NSString *)categoryName
              percentPlayed:(nonnull NSString *)percent
        withUniqueContentId:(nonnull NSString *)contentId
             withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postPlayedMedia(_ contentName: String, mediaType type: String, category categoryName: String, percentPlayed percent: String, withUniqueContentId contentId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    contentName

    Content name.

    type

    Type i.e., Audio, video etc.,

    categoryName

    Category of the media.

    percent

    Percentage of content played.

    contentId

    Content identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of the search in media.

    Since

    v3.0.5

    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 detials of the media rating.

    Since

    v3.0.5

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    contentName

    Content name.

    categoryName

    Category type

    mediaId

    Media identifier.

    rating

    Rating value.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details if media is liked.

    Since

    v3.0.5

    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

    Content category name.

    contentId

    Content identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details if media is disliked.

    Since

    v3.0.5

    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

    Content category name.

    contentId

    Content identifier.

    attributes

    Additional custom attributes app would like to share with server.