Inherits from NSObject
Declared in APSAnalytics.h

Overview

The APSAnalytics class configures the application to use the APS analytic services to send analytic data that can be viewed on the Appcelerator Dashboard.

For information on getting started with Appcelerator Platform Services, see Appclerator Platform Services for iOS.

Tasks

Properties

deployType

Retrieves the current deployment type. Returns either APSDeployTypeDevelopment or APSDeployTypeProduction.

@property (atomic, strong, readonly) NSString *deployType

Discussion

Retrieves the current deployment type. Returns either APSDeployTypeDevelopment or APSDeployTypeProduction.

Declared In

APSAnalytics.h

sessionTimeout

The session timeout in seconds. If the application has been in the background for longer than the timeout, the analytics service logs an end time to the current user session. Default value is 30 s.

@property (atomic, readwrite) NSTimeInterval sessionTimeout

Discussion

The session timeout in seconds. If the application has been in the background for longer than the timeout, the analytics service logs an end time to the current user session. Default value is 30 s.

Declared In

APSAnalytics.h

Class Methods

sharedInstance

Return the singleton instance to the real-time analytics service.

+ (instancetype)sharedInstance

Discussion

Return the singleton instance to the real-time analytics service.

Declared In

APSAnalytics.h

Instance Methods

sendAppFeatureEvent:payload:

Sends a feature event.

- (void)sendAppFeatureEvent:(NSString *)eventName payload:(NSDictionary *)payload

Parameters

eventName

String describing the event.

payload

Extra data to send. You can only send strings and numbers.

Discussion

Sends a feature event.

Declared In

APSAnalytics.h

sendAppGeoEvent:

Sends a geolocation event.

- (void)sendAppGeoEvent:(CLLocation *)location

Parameters

location

A CLLocation object containing the location data.

Discussion

Sends a geolocation event.

Declared In

APSAnalytics.h

sendAppNavEventFromView:toView:withName:payload:

Sends a navigation event

- (void)sendAppNavEventFromView:(NSString *)firstView toView:(NSString *)secondView withName:(NSString *)eventName payload:(NSDictionary *)payload

Parameters

firstView

String describing the location the user navigated from.

secondView

String describing the location the user navigated to.

eventName

String describing the event.

payload

Extra data to send. You can only send strings and numbers.

Discussion

Sends a navigation event

Declared In

APSAnalytics.h