Installation Guide

OkayCam

Android Installation Guide

Note: Please make sure the SDK version tally with the provided license key.

OkayCam SDK is available through maven central repo. To install it, add following dependency in app/build.gradle dependencies block:

dependencies {
    implementation('com.innov8tif.okaycam:OkayCam:3.0.0') {
        transitive = true
    }
}   

Also add following repo in project root build.gradle:

allprojects {
    repositories {
        maven {
            url "https://innov8tif-okaycam.firebaseapp.com"
            content {
                includeGroup "com.innov8tif.xendity"
            }
        }
    }
}

License Key

The license key is a string which you need to request from Innov8tif. In the following usage example, we put as LICENSE_KEY but you can use whatever variable name you want.

Starting Camera

  • Camera can be launched by invoking start method on OkayCamDoc with context,config and callback method as follow

  • config object is optional if you call from Kotlin (refer to Configuration for more info)

  • after the image is captured or the user cancel, the callback method will be called (refer result)

OkayCamDoc.start(this,LICENSE_KEY, config) { success, images, exception ->
    // do something with the result
}

Please be aware of the codes and commands above are case sensitive.

Last updated

Was this helpful?