Methods
- 
			<async, static> init( config ) → {Promise}
- 
	DescriptionInitializes ExperienceSdk 
 Important: Needs to be called before preLoad and start!
 When done, emits EventTypes.initDone
 If config.autoPreLoad is true, calls preLoad method
 If config.autoStart is true, calls start methodParametersName Type Description configObject config for initialization. Name Type Description accountHashstring The account hash to identify clients' account. autoPreLoadboolean The setting to define if related packages/assets will be preloaded with init 
 method or separately with calling preLoad() method.autoStartboolean The setting to define if feature tracking will start automatically after sdk 
 initialized and media stream accessed.featuresArray.<(Object|ClassifiersRawDataFeatureConfig)> Array of configurations for features 
 to calculate with experience SDK.ReturnsDetails
- 
			<async, static> preLoad() → {Promise}
- 
	DescriptionStarts the preloading of needed assets, codes, which may take longer. 
 Emits EventTypes.initDone if finished.
 Important: init method needs to be called before!ReturnsDetails
- 
			<async, static> start() → {Promise}
- 
	DescriptionStarts prediction, if preLoad method haven't called yet, it will call it first. 
 Important: init method needs to be called before!ReturnsDetails
- 
			<async, static> stop( releaseCamera ) → {Promise}
- 
	DescriptionStops all the trackers and features. Releases the camera if not recieved through config. Cannot restart tracking if camera is released. ParametersName Type Description releaseCamerabool Force release camera stream. If the camera stream is released, 
 the sdk cannot be restarted!ReturnsDetails
- 
			<async, static> error( callback ) → {Promise}
- 
	DescriptionCalls the callback function with the occurred error object. ParametersName Type Description callback* Client's callback function ReturnsDetails
- 
			<async, static> on( eventName, callback ) → {Promise}
- 
	ParametersName Type Description eventNamestring Client's callback function callbackeventCallback Client's callback function ReturnsDetails
- 
			<async, static> off( eventName, listener ) → {Promise}
- 
	DescriptionUnsubscribe from an event by it's name and the listener ParametersName Type Description eventNamestring Name of the event to unsubscribe from listenerobject Event listener which was subscribed on event ReturnsDetails
- 
			<async, static> offAll( eventName ) → {Promise}
- 
	DescriptionUnsubscribe from an event for all the listener ParametersName Type Description eventNamestring Name of the event to unsubscribe from ReturnsDetails
- 
			<static> getRunningState() → {string}
- 
	DescriptionGets the ExperienceSDK's running state, which can be: 
 NotInitialized, Idle, Running, ErrorReturnsDetails
- 
			<static> markIntervalStart( intervalType, contentId, intervalStart, timeoutSeconds ) → {void}
- 
	DescriptionMarks the start of a special interval. ParametersName Type Description intervalTypestring Custom string to identify the what the marked interval represents. 
 E.g. it can be "ad" or "content_video".
 At most one interval of a given type can be open at any given point in time.contentIdstring A domain specific custom identifier of the content of the marked interval. intervalStarttimestamp This parameter can be used for marking intervals 
 that actually started before the method call.
 If you do not specify it, the ExperienceSDK will use the current time as the timestamp.timeoutSecondsint Number of seconds after which the interval 
 will automatically be considered closed by the backend,
 even if no ending signal is received.ReturnsDetails
- 
			<static> markIntervalEnd( intervalType, intervalEnd ) → {void}
- 
	DescriptionMarks the end of a started interval. ParametersName Type Description intervalTypestring Custom string to identify the what the marked interval represents. 
 E.g. it can be "ad" or "content_video".
 At most one interval of a given type can be open at any given point in time.intervalEndtimestamp This parameter can be used for marking intervals 
 that actually started before the method call.
 If you do not specify it, the ExperienceSDK will use the current time as the timestamp.ReturnsDetails
- 
			<static> setIntervalInfoString( intervalType, key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the given interval. ParametersName Type Description intervalTypestring The interval type to which the property will be assigned. keystring The key of the property. valuestring The value of the property. ReturnsDetails
- 
			<static> setIntervalInfoBoolean( intervalType, key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the given interval. ParametersName Type Description intervalTypestring The interval type to which the property will be assigned. keystring The key of the property. valuebool The value of the property. ReturnsDetails
- 
			<static> setIntervalInfoNumber( intervalType, key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the given interval. ParametersName Type Description intervalTypestring The interval type to which the property will be assigned. keystring The key of the property. valuenumber The value of the property. ReturnsDetails
- 
			<static> getSourceId() → {string}
- 
	DescriptionGets participantId ReturnsDetails
- 
			<static> deleteSourceData() → {void}
- 
	DescriptionDeletes all data stored on the client side. ReturnsDetails
- 
			<static> addCustomProperty( key, value ) → {void}
- 
	DescriptionAdds a custom string property to the custom property map of all subsequent events. ParametersName Type Description keystring The key of the property. value* The value of the property. ReturnsDetails
- 
			<static> getCustomProperties() → {object}
- 
	DescriptionReturn key-value pairs of custom properties. ReturnsDetails
- 
			<static> setSourceAttributeString( key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the source. ParametersName Type Description keystring The key of the property. valuestring The value of the property. ReturnsDetails
- 
			<static> setSourceAttributeNumber( key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the source. ParametersName Type Description keystring The key of the property. valuenumber The value of the property. ReturnsDetails
- 
			<static> setSourceAttributeBoolean( key, value ) → {void}
- 
	DescriptionSends a custom string meta-data property for the source ParametersName Type Description keystring The key of the property. valuebool The value of the property. ReturnsDetails
Type Definitions
- 
			eventCallback( args )
- 
	ParametersName Type Description argsObject event's arguments Details