EventAnalyticsController
@objc
public protocol EventAnalyticsController
EventAnalyticsController
keeps track of events and notifies EventAnalyticsObserver
.
An event describes the success and failure conditions for the meeting session.
-
Declaration
Swift
func publishEvent(name: EventName)
-
Publish an event with updated
EventAttributes
Declaration
Swift
func publishEvent(name: EventName, attributes: [AnyHashable : Any])
Parameters
name
Name of event to publish
attributes
Attributes
EventAttributes
for that meeting event -
Push
MeetingHistoryEventName
to internalMeetingStatsCollector
states to later pass to buildersDeclaration
Swift
func pushHistory(historyEventName: MeetingHistoryEventName)
Parameters
historyEventName
History state to put in the meeting history
-
Subscribes to meeting event related data with an observer
Declaration
Swift
func addEventAnalyticsObserver(observer: EventAnalyticsObserver)
Parameters
observer
An observer to add to start receiving meeting events
-
Unsubscribes from meeting event by removing the specified observer
Declaration
Swift
func removeEventAnalyticsObserver(observer: EventAnalyticsObserver)
Parameters
observer
An observer to remove to stop receiving meeting events
-
Retrieve meeting history.
Declaration
Swift
func getMeetingHistory() -> [MeetingHistoryEvent]
-
Retrieve common attributes, including deviceName, osName, and more.
Declaration
Swift
func getCommonEventAttributes() -> [AnyHashable : Any]