LiBlocks Reference


Declared In: LiBlocks.h

Overview


LiBlocks is a collection of block methods predefined to provide easy response-handling to Applicasa's various asynchronous API and Datastore calls.


Tasks


LiObjPushNotification Blocks

+ SendPushFinished

Facebook Blocks

+ LiBlockFBFriendsAction

User Blocks

+ GetUserFinished
+ GetUserArrayFinished

VirtualCurrency Blocks

+ GetVirtualCurrencyFinished
+ GetVirtualCurrencyArrayFinished

VirtualGood Blocks

+ GetVirtualGoodFinished
+ GetVirtualGoodArrayFinished

VirtualGoodCategory Blocks

+ GetVirtualGoodCategoryFinished
+ GetVirtualGoodCategoryArrayFinished


Blocks


SendPushFinished

A block for responding to push notification completion.

typedef void (^SendPushFinished)(NSError *error, NSString *message, LiObjPushNotification *pushObject);

Parameters:

error
An NSError object indicating presence of an error.

message
An NSString object providing the response message from the push notification.

pushObject
An LiObjPushNotification object representing the push notification that was sent.

LiBlockFBFriendsAction

A block for responding to getting Facebook friends via the User class.

typedef void (^LiBlockFBFriendsAction)(NSError *error, NSArray *friends, Actions action);

Parameters:

error
An NSError object indicating presence of an error.

friends
An NSArray of Facebook friends returned by the Facebook API.

action
An Action enum

GetUserFinished

A block for responding to [User getById:queryKind:withBlock:].

typedef void (^GetUserFinished)(NSError *error, User *object);

Parameters:

error
An NSError object indicating presence of an error.

object
A User object returned by the query.

GetUserArrayFinished

A block for responding to various User methods that focus on returning a list of users.

typedef void (^GetUserArrayFinished)(NSError *error, NSArray *array);

Parameters:

error
An NSError object indicating presence of an error.

array
An NSArray of User objects returned by the query.

GetVirtualCurrencyFinished

A block for responding to fetching a specific VirtualCurrency by ID.

typedef void (^GetVirtualCurrencyFinished)(NSError *error, VirtualCurrency *object);

Parameters:

error
An NSError object indicating presence of an error.

object
A VirtualCurrency object returned by the query.

GetVirtualCurrencyArrayFinished

A block for responding to various VirtualCurrency and IAP methods that focus on returning a list of VirtualCurrency items.

typedef void (^GetVirtualCurrencyArrayFinished)(NSError *error, NSArray *array);

Parameters:

error
An NSError object indicating presence of an error.

array
An NSArray of VirtualCurrency objects returned by the query.

GetVirtualGoodFinished

A block for responding to fetching a specific VirtualGood by ID.

typedef void (^GetVirtualGoodFinished)(NSError *error, VirtualGood *object);

Parameters:

error
An NSError object indicating presence of an error.

object
A VirtualGood object returned by the query.

GetVirtualGoodArrayFinished

A block for responding to various VirtualGood and IAP methods that focus on returning a list of VirtualGood items.

typedef void (^GetVirtualGoodArrayFinished)(NSError *error, NSArray *array);

Parameters:

error
An NSError object indicating presence of an error.

array
An NSArray of VirtualGood objects returned by the query.

GetVirtualGoodCategoryFinished

A block for responding to fetching a specific VirtualGoodCategory by ID.

typedef void (^GetVirtualGoodCategoryFinished)(NSError *error, VirtualGoodCategory *object);

Parameters:

error
An NSError object indicating presence of an error.

object
A VirtualGoodCategory object returned by the query.

GetVirtualGoodCategoryArrayFinished

A block for responding to various VirtualGoodCategory and IAP methods that focus on returning a list of VirtualGoodCategory items.

typedef void (^GetVirtualGoodCategoryArrayFinished)(NSError *error, NSArray *array);

Parameters:

error
An NSError object indicating presence of an error.

array
An NSArray of VirtualGoodCategory objects returned by the query.


  « Back to SDK Class List