PayMittoEventListener

Callback to notify any PayMittoEvent.

Expected objects to be sent by the app in the callback response to the sdk

TypeDescription
PayMittoEventPayMitto SDK event.

Usage

import com.paymitto.android.sdk.PayMittoEventListener
import com.paymitto.android.sdk.SDKClosed
import com.paymitto.android.sdk.SDKLaunched


val payMittoEventListener = PayMittoEventListener { event ->
    if(event == SDKLaunched) {
        // SDK was launched!
    } else if(event == SDKClosed) {
        // SDK was closed!
    }
}