Class UnbluApplicationHelper

java.lang.Object
com.unblu.sdk.core.application.UnbluApplicationHelper

public class UnbluApplicationHelper extends Object
A helper class that can be used instead of inheriting from UnbluApplication and its visitor and agent implementations.
All the functions of UnbluApplicationHelper must be called in your Application implementation. Review the implementation of UnbluApplication for a simple example of how the functions are called.

CAUTION: If you use the UnbluApplicationHelper, you must ensure all functions are called inside the functions with the same signature defined in Application. This is especially important after an update of the SDK, as the update may include new functions that need (re-)implementing in your class.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onConfigurationChanged(android.content.res.Configuration newConfig)
    Needs to be called when Application.onConfigurationChanged(Configuration) is invoked
    static void
    Needs to be called when Application.onCreate() is invoked
    static void
    onCreate(android.app.Application application)
    Needs to be called when Application.onCreate() is invoked
    static void
    onNewIntent(android.os.Bundle extras)
    You should implement this method on your Activity's Activity.onNewIntent(Intent), if you meet the following criteria:
    static void
    Needs to be called when Application.onTerminate() is invoked.
    IMPORTANT: Needs to be called before the super call to Application.onTerminate()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnbluApplicationHelper

      protected UnbluApplicationHelper()
  • Method Details

    • onCreate

      public static void onCreate()
      Needs to be called when Application.onCreate() is invoked
    • onCreate

      public static void onCreate(android.app.Application application)
      Needs to be called when Application.onCreate() is invoked
      Parameters:
      application - instance
    • onConfigurationChanged

      public static void onConfigurationChanged(android.content.res.Configuration newConfig)
      Needs to be called when Application.onConfigurationChanged(Configuration) is invoked
      Parameters:
      newConfig - New configuration
    • onTerminate

      public static void onTerminate()
      Needs to be called when Application.onTerminate() is invoked.
      IMPORTANT: Needs to be called before the super call to Application.onTerminate()
    • onNewIntent

      public static void onNewIntent(android.os.Bundle extras)
      You should implement this method on your Activity's Activity.onNewIntent(Intent), if you meet the following criteria:

      - You use Unblu call functionality in your app - Your

      MainActivity
      uses launchMode="singleInstance", and you do not wish to recreate your activity after an Unblu notification is clicked.