AppsfireSDK Class Reference

Inherits from NSObject
Declared in AppsfireSDK.h

Overview

Appsfire SDK top-level class.

Library Life

+ connectWithSDKToken:secretKey:features:parameters:

Set up the Appsfire SDK.

+ (NSError *)connectWithSDKToken:(NSString *)token secretKey:(NSString *)secretKey features:(AFSDKFeature)features parameters:(NSDictionary *)parameters

Parameters

token

Your SDK token can be found on http://dashboard.appsfire.com/app-settings

secretKey

Your secret key can be found on http://dashboard.appsfire.com/app-settings

features

Features defined by a bitmask. You can enable one or more features. If you are only using the Monetization SDK, then you should only specify AFSDKFeatureMonetization. In case of doubt, don’t hesitate to contact us!

parameters

(optional) A dictionary describing the optional parameters to initialize the SDK.

Return Value

Returns an error if something bad happened. Or just nil if all went well!

Declared In

AppsfireSDK.h

+ isInitialized

Tells you if the SDK is initialized.

+ (BOOL)isInitialized

Return Value

YES if the sdk is initialized, NO if not.

Discussion

Note: The SDK initialization is not synchronous. Thus, don’t except this method to return YES just after you called connectWithSDKToken:features:parameters:. If you need to be alerted once the SDK is initialized, please refer to the notification kAFSDKIsInitialized.

Declared In

AppsfireSDK.h

+ versionDescription

Get SDK version and build number (for debug purposes only).

+ (NSString *)versionDescription

Return Value

Return a string with SDK version and build number.

Declared In

AppsfireSDK.h