Inherits from NSObject
Declared in ABBI.h

Overview

ABBI class manages the execution of ABBI SDK. Navigate to https://console.abbi.io to Register/Login and Manage Your Promotions For support, drop us an email at Support@abbi.io

Tasks

Class Methods

sendGoal:withProperites:

+ (void)sendGoal:(NSString *)goalName withProperites:(NSDictionary *)properties
Discussion

Sends a Goal to ABBI’s Backend. A Goal is a user action that can be used to target your users.

Usage Example :@

[ABBI sendGoal:@“Bought a blue sword” withProperites:nil] [ABBI sendGoal:@“Bought a blue sword” withProperites:@{@“item_name”, @“unlimited_calls”}]

Parameters

goalName

the Goal name.

properties

the Goal properties, key-value structured (if any).

Declared In

ABBI.h

setFlag:

+ (void)setFlag:(int)n
Discussion

Utility function for remote sessions with ABBI support team.

Parameters

n

Will be given by ABBI support team when needed

Declared In

ABBI.h

setUserDataKey:withValue:

+ (void)setUserDataKey:(NSString *)key withValue:(NSString *)value
Discussion

Set user data properties Save additional properties on the user

Usage Example :

[ABBI setUserDataKey:@“isProUser” withValue:@“YES”] [ABBI setUserDataProperties:@{@“isProUser” : @“YES”, @“didPurchaseItems” : @“YES”}]

Declared In

ABBI.h

setUserDataProperties:

+ (void)setUserDataProperties:(NSDictionary<NSString*,NSString*> *)properties

start:withSecretKey:

+ (void)start:(NSString *)appId withSecretKey:(NSString *)appSecretKey
Discussion

Starts ABBI SDK.

Parameters

appId

The Application Id provided by ABBI

appSecretKey

The Application Secret key provided by ABBI

To get your Application Id and Application Secret key, login to Abbi console at https://console.abbi.io and click the settings icon near your Application Name. You can find more info here - https://abbi.zendesk.com/hc

Declared In

ABBI.h

start:withSecretKey:andApplicationType:

+ (void)start:(NSString *)appId withSecretKey:(NSString *)appSecretKey andApplicationType:(ABBIAppType)type
Discussion

FOR HYBRID APPS ONLY! - Starts ABBI SDK.

Parameters

appId

The Application Id provided by ABBI

appSecretKey

The Application Secret key provided by ABBI

type

The Application Type (i.e. ABBI_APP_HYBRID)

To get your Application Id and Application Secret key, login to Abbi console at https://console.abbi.io and click the settings icon near your Application Name. You can find more info here - https://abbi.zendesk.com/hc

Declared In

ABBI.h

trigger:

+ (void)trigger:(NSString *)myTriggerName
Discussion

Launches a campaign by trigger key Once invoked, the method will show the campaign WITHOUT any of its segments (if defined)

Usage Example :

[ABBI trigger:@“Show How To Order Credit Card”]

Declared In

ABBI.h