Package com.unblu.sdk.core.application
Class UnbluApplicationHelper
- java.lang.Object
-
- com.unblu.sdk.core.application.UnbluApplicationHelper
-
public class UnbluApplicationHelper extends java.lang.Object
A helper class that can be used instead of inheriting fromUnbluApplication
and its visitor and agent implementations.
All the functions ofUnbluApplicationHelper
must be called in yourApplication
implementation. Review the implementation ofUnbluApplication
for a simple example of how the functions are called.
CAUTION: If you use theUnbluApplicationHelper
, you must ensure all functions are called inside the functions with the same signature defined inApplication
. 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
UnbluApplicationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
onConfigurationChanged(android.content.res.Configuration newConfig)
Needs to be called whenApplication.onConfigurationChanged(Configuration)
is invokedstatic void
onCreate()
Needs to be called whenApplication.onCreate()
is invokedstatic void
onCreate(android.app.Application application)
Needs to be called whenApplication.onCreate()
is invokedstatic void
onNewIntent(android.os.Bundle extras)
You should implement this method on your Activity'sActivity.onNewIntent(Intent)
, if you meet the following criteria:static void
onTerminate()
Needs to be called whenApplication.onTerminate()
is invoked.
IMPORTANT: Needs to be called before the super call toApplication.onTerminate()
-
-
-
Method Detail
-
onCreate
public static void onCreate()
Needs to be called whenApplication.onCreate()
is invoked
-
onCreate
public static void onCreate(android.app.Application application)
Needs to be called whenApplication.onCreate()
is invoked- Parameters:
application
- instance
-
onConfigurationChanged
public static void onConfigurationChanged(android.content.res.Configuration newConfig)
Needs to be called whenApplication.onConfigurationChanged(Configuration)
is invoked- Parameters:
newConfig
- New configuration
-
onTerminate
public static void onTerminate()
Needs to be called whenApplication.onTerminate()
is invoked.
IMPORTANT: Needs to be called before the super call toApplication.onTerminate()
-
onNewIntent
public static void onNewIntent(android.os.Bundle extras)
You should implement this method on your Activity'sActivity.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.
-
-