Skip to content

ivolga-tech/sensors-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

HumanSignals

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate HumanSignals into your Xcode project using CocoaPods, specify it in your Podfile:

.....
source 'https://github.com/ivolga-tech/sensors-ios' # for HumanSignals
source 'https://cdn.cocoapods.org/' # for dependencies of HumanSignals

.....
pod 'HumanSignals', :source => 'https://github.com/ivolga-tech/sensors-ios'
.....

Usage

Capture motion sensors data

HumanSignalsSDK.setRemoteHost(_ host: Host)

Sets host for receiving data in the form like "https://example.com".

HumanSignalsSDK.start()

Starts data flow.

HumanSignalsSDK.stop()

Stops data flow.

Capture user events/actions

HumanSignalsSDK.initTracker(host: String, apiKey: String)

Initialises events tracker with provided host server address and unique api key.

HumanSignalsSDK.identifyUser(uniqueID: String)

Helps to identify one's app user with its events.

HumanSignalsSDK.resetUser()

Reset any user state. This may be useful when a user logs out and you want to clear the user's identity in tracker.

HumanSignalsSDK.captureEnteraction(name: String, properties: [String : Any]? = nil)
HumanSignalsSDK.captureScreen(_ screenTitle: String, properties: [String : Any]? = nil)

Captures custom enteraction and screen change with additional data.

HumanSignalsSDK.flushQueuedEvents()

Force sending of all queued events from dynamic memory of the device.

HumanSignalsSDK.enableTracking()
HumanSignalsSDK.disableTracking()

Enables and disables events capturing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •