OTVEvent


@interface OTVEvent : NSObject

An instance of a player event

  • Initailize OTVEvent instance with parameters \param timestamp the timestamp of the event

    \param type the type of the event. SDK generated events will have types from EventType

    \param command the command of the event. SDK generated events will have commands from EventCommand

    \param extra optional extra information for the event. SDK generated events will have extras formatted as a JSON string, with keys from ExtraKey

    returns: an event instance

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTimestamp:(NSDate *_Nonnull)timestamp
                                         type:(NSString *_Nonnull)type
                                      command:(NSString *_Nonnull)command
                                        extra:(NSString *_Nullable)extra;