PluginBridge

This class contains static methods that should be used to interface with plugins (Cordova, React Native...).

Functions

Link copied to clipboard
fun generateDocument(context: Context, documentMap: Map<String, Any>, configurationMap: Map<String, Any>): PromiseResult
Link copied to clipboard
fun getPromiseResultFromActivityResult(context: Context, requestCode: Int, resultCode: Int, data: Intent?): PromiseResult?

Convert the intent response into a PromiseResult.

Link copied to clipboard
Link copied to clipboard
fun setLicenseKey(context: Context, licenseKey: String, autoRefresh: Boolean)

Initialize the SDK with a license key.