|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object io.vov.vitamio.VitamioInstaller
public class VitamioInstaller
It's recommended to use this class to check if Vitamio Plugin is installed in the device before using any other classes and functions.
Nested Class Summary | |
---|---|
static class |
VitamioInstaller.VitamioNotCompatibleException
This exception will be thrown when Vitamio not compatible with the device. |
static class |
VitamioInstaller.VitamioNotFoundException
This exception will be thrown when Vitamio not found in the device. |
Field Summary | |
---|---|
static java.lang.String |
VITAMIO_PACKAGE_ARMV6
|
static java.lang.String |
VITAMIO_PACKAGE_ARMV6_VFP
|
static java.lang.String |
VITAMIO_PACKAGE_ARMV7_NEON
|
static java.lang.String |
VITAMIO_PACKAGE_ARMV7_VFPV3
|
static int |
VITAMIO_VERSION_CODE
|
static java.lang.String |
VITAMIO_VERSION_NAME
|
Constructor Summary | |
---|---|
VitamioInstaller(Context ctx)
|
Method Summary | |
---|---|
Dialog |
buildInstallerDialog(java.lang.String title,
java.lang.String msg,
java.lang.String button)
A simple helper dialog to guide the user install a compatible Vitamio package, you may build a more beautiful one by yourself. |
Dialog |
buildNotCompatibleDialog(java.lang.String title,
java.lang.String msg,
java.lang.String button)
A simple helper dialog telling user Vitamio is not compatible with the device, you may build a more beautiful one by yourself. |
static java.lang.String |
checkVitamioInstallation(Context ctx)
Check if a Vitamio package is installed |
VitamioInstaller |
clearSources()
|
VitamioInstaller |
fillDefaultSources()
|
static java.lang.String |
getCompatiblePackage()
|
static java.lang.String |
getLibraryPath(Context ctx)
Get the absolute path to Vitamio's library |
java.util.Map<java.lang.String,java.lang.String> |
getSources()
|
VitamioInstaller |
putSource(java.lang.String title,
java.lang.String url)
|
void |
showInstallerDialog(java.lang.String title,
java.lang.String msg,
java.lang.String button)
A simple helper dialog to guide the user install a compatible Vitamio package, you may build a more beautiful one by yourself. |
void |
showNotCompatibleDialog(java.lang.String title,
java.lang.String msg,
java.lang.String button)
A simple helper dialog telling user Vitamio is not compatible with the device, you may build a more beautiful one by yourself. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VITAMIO_VERSION_CODE
public static final java.lang.String VITAMIO_VERSION_NAME
public static final java.lang.String VITAMIO_PACKAGE_ARMV6
public static final java.lang.String VITAMIO_PACKAGE_ARMV6_VFP
public static final java.lang.String VITAMIO_PACKAGE_ARMV7_VFPV3
public static final java.lang.String VITAMIO_PACKAGE_ARMV7_NEON
Constructor Detail |
---|
public VitamioInstaller(Context ctx)
Method Detail |
---|
public VitamioInstaller fillDefaultSources()
public VitamioInstaller putSource(java.lang.String title, java.lang.String url)
public java.util.Map<java.lang.String,java.lang.String> getSources()
public VitamioInstaller clearSources()
public void showInstallerDialog(java.lang.String title, java.lang.String msg, java.lang.String button)
title
- dialog's titlebutton
- text on the dialog's buttonpublic Dialog buildInstallerDialog(java.lang.String title, java.lang.String msg, java.lang.String button)
title
- dialog's titlebutton
- text on the dialog's buttonpublic void showNotCompatibleDialog(java.lang.String title, java.lang.String msg, java.lang.String button)
title
- dialog's titlemsg
- message displayed on dialogbutton
- text on the dialog's buttonpublic Dialog buildNotCompatibleDialog(java.lang.String title, java.lang.String msg, java.lang.String button)
title
- dialog's titlemsg
- message displayed on dialogbutton
- text on the dialog's buttonpublic static java.lang.String getCompatiblePackage()
public static java.lang.String checkVitamioInstallation(Context ctx) throws VitamioInstaller.VitamioNotCompatibleException, VitamioInstaller.VitamioNotFoundException
ctx
- a Context
getCompatiblePackage()
VitamioInstaller.VitamioNotCompatibleException
VitamioInstaller.VitamioNotFoundException
public static java.lang.String getLibraryPath(Context ctx) throws VitamioInstaller.VitamioNotCompatibleException, VitamioInstaller.VitamioNotFoundException
ctx
- a Context
VitamioInstaller.VitamioNotCompatibleException
VitamioInstaller.VitamioNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |