public abstract class MobileSDK
extends java.lang.Object
Constructor and Description |
---|
MobileSDK(android.app.Activity rootActivity) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getMissingPermissions(android.content.Context context)
Returns a list containing each permission (as String), which is needed by the SDK but not yet granted for the given Context.
|
static java.lang.String[] |
getRequiredPermissions()
Obtain all "dangerous" permissions that are required by the Jumio SDK.
|
static java.lang.String |
getSDKVersion()
Returns the Mobile SDK version.
|
static boolean |
hasAllRequiredPermissions(android.content.Context context)
Checks if all required permissions are already granted.
|
static boolean |
hasPermissionsFor(android.content.Context context,
java.lang.String[] names)
Check if certain permissions have already been granted.
|
static boolean |
isRooted(android.content.Context context)
Checks if the device is rooted
|
void |
setCustomTheme(int themeResourceId)
Sets a custom theme for the SDK.
|
abstract void |
start() |
public static java.lang.String getSDKVersion()
public static boolean isRooted(android.content.Context context)
public void setCustomTheme(int themeResourceId)
themeResourceId
- the resource id of the theme to be setpublic static java.lang.String[] getRequiredPermissions()
public static boolean hasAllRequiredPermissions(android.content.Context context)
context
- The context object on which to checkgetRequiredPermissions() to get all permission identifiers needed
,
getMissingPermissions() to get all permissions, which are not yet granted
public static boolean hasPermissionsFor(android.content.Context context, java.lang.String[] names)
context
- The context for which to checknames
- An array of strings containing the identifiers for each permission.public static java.lang.String[] getMissingPermissions(android.content.Context context)
context
- The context object to check forpublic abstract void start() throws MissingPermissionException
MissingPermissionException
© Jumio Corp. 268 Lambert Avenue, Palo Alto, CA 94306
The source code and software available on this website (“Software”) is provided by Jumio Corp. or its affiliated group
companies (“Jumio”) "as is” and any express or implied warranties, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose are disclaimed. In no event shall Jumio be liable for any direct, indirect,
incidental, special, exemplary, or consequential damages (including but not limited to procurement of substitute goods or
services, loss of use, data, profits, or business interruption) however caused and on any theory of liability, whether in contract,
strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Software, even if advised of the
possibility of such damage. In any case, your use of this Software is subject to the terms and conditions that apply to your
contractual relationship with Jumio. As regards Jumio’s privacy practices, please see our privacy notice available here: Privacy Policy.