//scanning/com.pixelnetica.scanning/ScanningSdkLibrary/load

load

[androidJvm]\

@JvmStatic

fun load(application: Application): Boolean

Initialize library by Application instance. License key read from assets "pixelnetica/scanning/(file)" (file) must be one of

  • Application package Id with ".key" suffix e.g. "com.example.application.key"
  • Application package Id e.g. "com.example.application"
  • "license.key"
  • "license"
  • "key"

Return

true if the licence key was found. Licence is not checked. Use isLicenceValid to check the licence.

Parameters

androidJvm

   
application android.app.Application instance

[androidJvm]\

@JvmStatic

fun load(application: Application, licenseKey: String)

Initialize library by Application instance.

Parameters

androidJvm

   
application an android.app.Application instance
licenseKey licence key string

[androidJvm]\

@JvmStatic

fun load(application: Application, @StringResresId: Int)

Using resources to read license key

Parameters

androidJvm

   
application application an android.app.Application instance
resId license key string resource id.
Top