Headless Setup
object HeadlessSetup
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun initialSetup(context: Context, builderAction: SetupOptionBuilder.() -> Unit? = null): SetupResp
Performs the initial setup for the SoftPOS. Only require called once per app installation.
Link copied to clipboard
fun initialSetupCallback(context: Context, builderAction: SetupOptionBuilder.() -> Unit? = null, callback: (SetupResp) -> Unit)
Link copied to clipboard
Init the SoftPOS SDK in the application. Require called each time application starts up (app onCreate)
Link copied to clipboard
fun initSoftPosCallBack(app: Application, licenseFileName: String, callback: (WrappedResult<SdkInitResp>) -> Unit)
non-suspending version for calling from java