Package com.unblu.sdk.core.application
Class UnbluApplicationHelper
- java.lang.Object
-
- com.unblu.sdk.core.application.UnbluApplicationHelper
-
public class UnbluApplicationHelper extends java.lang.Object
Helper which can be used instead of inherit fromUnbluApplication
(and its visitor/agent implementation).
All functions of this helper need to be called in yourApplication
implementation. CheckUnbluApplication
for a simple example how this functions are called.
CAUTION: If using the helper, you need to ensure all functions are called according to their counterpart which is defined inApplication
. This is especially important after an update of the SDK.
-
-
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
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()
-
-