LiManager Reference
Package: com.applicasa.ApplicasaManager
Declared In: com.applicasa.ApplicasaManager.LiManager
Overview
A class to handle fundamental Applicasa SDK and framework setup and internal interactions, expose native datastore objects to your application.
Tasks
Applicasa Initialization
initialize(Context, LiCallbackInitialize)
initialize(Context, LiCallbackInitialize, LiCallbackIAPInitialize)
Google GCM Registration
registerToGCM
unRegisterFromGCM
isRegisteredToGCM
Class Methods
initialize(Context, LiCallbackInitialize)
Initialize Applicasa with application context and a single callback method.
public static void initialize(Context context, LiCallbackInitialize liCallbackInitialize)
Parameters:
context
The application Context object.
liCallbackInitialize
A callback to execute when initialize() has successfully completed.
Discussion:
Class method used to initialize Applicasa. This method takes a single callback that will be executed after the initialization has completed.
initialize(Context, LiCallbackInitialize, LiCallbackIAPInitialize)
Initialize Applicasa with application context and separate SDK and IAP callbacks.
public static void initialize(Context context, LiCallbackInitialize liCallbackInitialize, LiCallbackIAPInitialize liCallbackIAPInitialize)
Parameters:
context
The application Context object.
liCallbackInitialize
A callback to execute when SDK initialization has successfully completed.
liCallbackIAPInitialize
A callback to execute when IAP billing initialization has successfully completed.
Discussion:
Class method used to initialize Applicasa and all enabled features. This method takes two callback methods that will be executed after each stage of the initialization is complete. The first, liCallbackInitialize, executes after the Applicasa SDK and frameworks have finished initializing. The second, liCallbackIAPInitialize, executes after IAP-related initialization has completed.
registerToGCM
Registers application for Google Cloud Messaging (GCM) service.
public static void registerToGCM()
Discussion:
Applicasa-provided helper method that registers your app with the GCM service. It uses the GOOGLE_GCM key you provide to LiConfig.java.
unRegisterFromGCM
Unregisters your app from the Google Cloud Messaging (GCM) service.
public static void unRegisterFromGCM()
Discussion:
Applicasa-provided helper method taht unregisters your app from the GCM service.
isRegisteredToGCM
Returns your app's Google Cloud Messaging (GCM) registration status.
public static boolean isRegisteredToGCM()
Return Value:
A boolean value that indicates whether your app is registered to GCM.
Discussion:
Applicasa-provided helper method that provides a boolean to indicate if the app is registered with GCM.