TNDataCollectorClient
@objcMembers
public class TNDataCollectorClient : NSObject, LogInitiator
Undocumented
-
Sends the event to data collector cloud.
Declaration
Swift
@discardableResult @objc public func send(event: TNEvent) -> TNDataCollectorResponseParameters
eventan event to be sent
Return Value
error in case of event is not supported, client is not cofigured etc. otherwise nil
-
Sends the events to data collector cloud.
Declaration
Swift
@discardableResult @objc public func send(events: [TNEvent]) -> TNDataCollectorResponseParameters
eventsevents to be sent
Return Value
error in case of event is not supported, client is not cofigured etc. otherwise nil
-
Adds consumer to subscription queue for event types
Declaration
Swift
@discardableResult @objc public func subscribe(consumerWithName name: String, forEventTypes types: [TNEventType], withCallBack block: @escaping (_ occurredEvent: TNEvent)->()) -> TNDataCollectorResponseParameters
namethe name of consumer. Should be unique.
typesthe types of event to be subscribed for
blockthe callback to be executed when event of the type happens
Return Value
error in case of consumer name is empty or consumer already exists for the event type etc.
-
Removes consumer from subscription queue for event types
Declaration
Swift
@discardableResult @objc public func unsubscribe(consumerWithName name: String, forEventTypes types: [TNEventType]) -> TNDataCollectorResponseParameters
namethe name of consumer. Should be unique.
typesthe types of event to be removed from
Return Value
error in case of conssumer name is empty etc.
TNDataCollectorClient Class Reference