Package com.unblu.sdk.core.application
Class UnbluApplicationHelper
java.lang.Object
com.unblu.sdk.core.application.UnbluApplicationHelper
A helper class that can be used instead of inheriting from
All the functions of
CAUTION: If you use the
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Needs to be called whenApplication.onTerminate()
is invoked.
IMPORTANT: Needs to be called before the super call toApplication.onTerminate()
-
Constructor Details
-
UnbluApplicationHelper
protected UnbluApplicationHelper()
-
-
Method Details
-
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.
-