AWSMobileAnalytics
Deprecated
Use AWSPinpoint for analytics.
Objective-C
@interface AWSMobileAnalytics : NSObject
Swift
class AWSMobileAnalytics : NSObject
Amazon Mobile Analytics client.
Warning
The AWSMobileAnalytics SDK is deprecated. Please use AWSPinpoint for analytics. @deprecated Please use AWSPinpoint for analytics.-
Returns the
AWSMobileAnalyticsEventClient. @returns theAWSMobileAnalyticsEventClientto create, record, and submit events.Declaration
Objective-C
@property (nonatomic, strong, readonly) id<AWSMobileAnalyticsEventClient> eventClient;Swift
var eventClient: AWSMobileAnalyticsEventClient! { get } -
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdin theInfo.plistif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.@returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
Declaration
Objective-C
+ (instancetype)defaultMobileAnalytics;Swift
class func `default`() -> Self! -
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdusing the defaultconfigurationif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.Declaration
Objective-C
+ (instancetype)mobileAnalyticsForAppId:(NSString *)appId;Swift
convenience init!(forAppId appId: String!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Deprecated
please use mobileAnalyticsForAppId:(NSString *)appId configuration:(AWSMobileAnalyticsConfiguration *)configuration
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.identityPoolIdis ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually. This method defaults to initialize both mobile analytics and cognito in the AWSUSEast1 region.Declaration
Objective-C
+ (instancetype)mobileAnalyticsForAppId:(NSString *)appId identityPoolId:(NSString *)identityPoolId;Swift
convenience init!(forAppId appId: String!, identityPoolId: String!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
identityPoolIdThe identity pool id for this provider. Value is used to communicate with Amazon Cognito as well as namespace values stored in the keychain. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Deprecated
please use mobileAnalyticsForAppId:(NSString *)appId configuration:(AWSMobileAnalyticsConfiguration *)configuration completionBlock:(AWSInitializationCompletionBlock)completionBlock
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.identityPoolIdandcompletionBlockare ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually. This method defaults to initialize both mobile analytics and cognito in the AWSUSEast1 region.Declaration
Objective-C
+ (instancetype)mobileAnalyticsForAppId:(NSString *)appId identityPoolId:(NSString *)identityPoolId completionBlock: (AWSInitializationCompletionBlock)completionBlock;Swift
convenience init!(forAppId appId: String!, identityPoolId: String!, completionBlock: AWSInitializationCompletionBlock!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
identityPoolIdThe identity pool id for this provider. Value is used to communicate with Amazon Cognito as well as namespace values stored in the keychain.
completionBlockA AWSInitializationCompletionBlock that allows developers to handle custom logic after initialization but before the session begins. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdusing providedconfigurationif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.configurationare ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.Declaration
Objective-C
+ (instancetype)mobileAnalyticsForAppId:(NSString *)appId configuration: (AWSMobileAnalyticsConfiguration *)configuration;Swift
convenience init!(forAppId appId: String!, configuration: AWSMobileAnalyticsConfiguration!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
configurationA configuraiton object. By default, it uses [AWSServiceManager defaultServiceManager].defaultServiceConfiguration to access the service. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdusing providedconfigurationif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.configurationandcompletionBlockare ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.Declaration
Objective-C
+ (instancetype) mobileAnalyticsForAppId:(NSString *)appId configuration:(AWSMobileAnalyticsConfiguration *)configuration completionBlock:(AWSInitializationCompletionBlock)completionBlock;Swift
convenience init!(forAppId appId: String!, configuration: AWSMobileAnalyticsConfiguration!, completionBlock: AWSInitializationCompletionBlock!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
configurationA configuraiton object. By default, it uses [AWSServiceManager defaultServiceManager].defaultServiceConfiguration to access the service.
completionBlockA AWSInitializationCompletionBlock that allows developers to handle custom logic after initialization but before the session begins. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Deprecated
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdusing the defaultconfigurationif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.configurationandcompletionBlockare ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.Declaration
Objective-C
+ (instancetype)mobileAnalyticsForAppId:(NSString *)appId insightsPrivateKey:(NSString *)insightsPrivateKey;Swift
convenience init!(forAppId appId: String!, insightsPrivateKey: String!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
insightsPrivateKeyPrivate Key from the Amazon Insights SDK. Pass Private Key to migrate from the Insights SDK. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
-
Deprecated
Creates an
AWSMobileAnalyticsinstance with the specifiedappIdusing providedconfigurationif the instance does not already exists for theappId. If an instance exists for the givenappId, returns the existing instance.configurationandcompletionBlockare ignored if an instance exists for the givenappId. The strong reference to the instance is maintained byAWSMobileAnalytics, and the developer does not need to retain it manually.Declaration
Objective-C
+ (instancetype) mobileAnalyticsForAppId:(NSString *)appId insightsPrivateKey:(NSString *)insightsPrivateKey configuration:(AWSMobileAnalyticsConfiguration *)configuration completionBlock:(AWSInitializationCompletionBlock)completionBlock;Swift
convenience init!(forAppId appId: String!, insightsPrivateKey: String!, configuration: AWSMobileAnalyticsConfiguration!, completionBlock: AWSInitializationCompletionBlock!)Parameters
appIdAppId from Amazon Mobile Analytics Management Console.
insightsPrivateKeyPrivate Key from the Amazon Insights SDK. Pass Private Key to migrate from the Insights SDK.
configurationA configuraiton object. By default, it uses [AWSServiceManager defaultServiceManager].defaultServiceConfiguration to access the service.
completionBlockA AWSInitializationCompletionBlock that allows developers to handle custom logic after initialization but before the session begins. @returns The AWSMobileAnalytics instance with the specified appId or nil if serviceConfiguration is invalid or appId is empty.
View on GitHub
Install in Dash
AWSMobileAnalytics Class Reference