public class NavigatorHelper
extends java.lang.Object
| Constructor and Description |
|---|
NavigatorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAppEnabled(android.content.Context context,
java.lang.String packageName)
Check if app is installed AND enabled
|
static boolean |
isAppInstalled(android.content.Context context,
java.lang.String packageName)
Check if an app is installed from the package name
|
static void |
launchPlayStoreWithAppPackage(android.content.Context context,
java.lang.String packageName)
Open another app.
|
static void |
openApp(android.content.Context context,
java.lang.String packageName,
android.os.Bundle extras)
Open an application from it's package name. if application is not installed it will redirect user
to the play store
|
static void |
openApp(android.content.Context context,
java.lang.String packageName,
IoTizeDevice ioTizeDevice) |
public static void openApp(@NonNull
android.content.Context context,
@NonNull
java.lang.String packageName,
@Nullable
android.os.Bundle extras)
context - the contextpackageName - the android application package nameextras - extra intent bundlepublic static void launchPlayStoreWithAppPackage(android.content.Context context,
java.lang.String packageName)
context - current Context, like Activity, App, or ServicepackageName - the full package name of the app to openpublic static boolean isAppInstalled(android.content.Context context,
java.lang.String packageName)
context - the contextpackageName - the android application package namepublic static boolean isAppEnabled(android.content.Context context,
java.lang.String packageName)
context - the contextpackageName - the android application package namepublic static void openApp(android.content.Context context,
java.lang.String packageName,
IoTizeDevice ioTizeDevice)