public final class MicroblinkSDK
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static android.content.Context | 
getApplicationContext()  | 
static IntentDataTransferMode | 
getIntentDataTransferMode()
Returns current intent data transfer mode. 
 | 
static java.lang.String | 
getNativeLibraryVersionString()
Methods returns the version string of native library, if it has been
 loaded. 
 | 
static void | 
setIntentDataTransferMode(IntentDataTransferMode intentDataTransferMode)
Sets intent data transfer mode for passing Microblink SDK data between activities. 
 | 
static void | 
setLicenseBuffer(byte[] licenseBuffer,
                android.content.Context applicationContext)
Set license buffer and unlock the SDK. 
 | 
static void | 
setLicenseBuffer(byte[] licenseBuffer,
                java.lang.String licensee,
                android.content.Context applicationContext)
Set license buffer and unlock the SDK. 
 | 
static void | 
setLicenseFile(java.lang.String licenseFilePath,
              android.content.Context applicationContext)
Set the license file and unlock the SDK. 
 | 
static void | 
setLicenseFile(java.lang.String licenseFilePath,
              java.lang.String licensee,
              android.content.Context applicationContext)
Set the license file and unlock the SDK. 
 | 
static void | 
setLicenseKey(java.lang.String base64LicenseKey,
             android.content.Context applicationContext)
Set license key and unlock the SDK. 
 | 
static void | 
setLicenseKey(java.lang.String base64LicenseKey,
             java.lang.String licensee,
             android.content.Context applicationContext)
Set license key and unlock the SDK. 
 | 
static void | 
setShowTrialLicenseWarning(boolean showTrialLicenseWarning)
Disable or enable showing of toast when trial license key is entered. 
 | 
@Nullable public static android.content.Context getApplicationContext()
@NonNull public static IntentDataTransferMode getIntentDataTransferMode()
IntentDataTransferModepublic static void setIntentDataTransferMode(@NonNull
                                             IntentDataTransferMode intentDataTransferMode)
IntentDataTransferMode.PERSISTED_OPTIMISED is used.intentDataTransferMode - requested data transfer modeIntentDataTransferModepublic static void setShowTrialLicenseWarning(boolean showTrialLicenseWarning)
showTrialLicenseWarning - whether or not warning for using trial license should be shown@NonNull public static java.lang.String getNativeLibraryVersionString()
public static void setLicenseBuffer(@NonNull
                                    byte[] licenseBuffer,
                                    @NonNull
                                    android.content.Context applicationContext)
licenseBuffer - Byte array containing the license.applicationContext - Application context.InvalidLicenceKeyException - if license is not validpublic static void setLicenseBuffer(@NonNull
                                    byte[] licenseBuffer,
                                    @NonNull
                                    java.lang.String licensee,
                                    @NonNull
                                    android.content.Context applicationContext)
licenseBuffer - Byte array containing the license.licensee - Licensee to which license is given to.applicationContext - Application context.InvalidLicenceKeyException - if license is not validpublic static void setLicenseKey(@NonNull
                                 java.lang.String base64LicenseKey,
                                 @NonNull
                                 android.content.Context applicationContext)
base64LicenseKey - License file encoded as base64 string.applicationContext - Application context.InvalidLicenceKeyException - if license is not validpublic static void setLicenseKey(@NonNull
                                 java.lang.String base64LicenseKey,
                                 @NonNull
                                 java.lang.String licensee,
                                 @NonNull
                                 android.content.Context applicationContext)
base64LicenseKey - Byte array containing the license.licensee - Licensee to which license is given to.applicationContext - Application context.InvalidLicenceKeyException - if license is not validpublic static void setLicenseFile(@NonNull
                                  java.lang.String licenseFilePath,
                                  @NonNull
                                  android.content.Context applicationContext)
licenseFilePath - Path inside assets where license file should be loaded from.applicationContext - Application context required to access asset manager.InvalidLicenceKeyException - if license is not validpublic static void setLicenseFile(@NonNull
                                  java.lang.String licenseFilePath,
                                  @NonNull
                                  java.lang.String licensee,
                                  @NonNull
                                  android.content.Context applicationContext)
licenseFilePath - Path inside assets where license file should be loaded from.applicationContext - Application context required to access asset manager.InvalidLicenceKeyException - if license is not valid