#thiago-help

1 messages · Page 1 of 1 (latest)

wise solstice
#

@steady nimbus you too!

steady nimbus
#

hey @wise solstice

#

I have an issue working with Stripe Terminal, specifically in this method: Terminal.getInstance().connectBluetoothReader(

#

my parameters are: reader, connectionConfig, activity

#

my issue is in 3rd parameter

#

I'm working with a fragment

#

I'm a little bit lost

wise solstice
#

I'm sorry I know next to nothing about Android + Terminal. I'm happy to help you but I need more details about what your real issue is, more surrounding code, etc.

steady nimbus
#

no worries

#

private fun testConnect(reader: Reader) {
val connectionConfig = ConnectionConfiguration.BluetoothConnectionConfiguration(reader.location?.id.orEmpty())
Terminal.getInstance().connectBluetoothReader(
reader,
connectionConfig,
(activity as WeakReference<MainActivity>).get(),
object : ReaderCallback {
override fun onSuccess(reader: Reader) {
runOnUiThread {
toast("connected")
}
}

                    override fun onFailure(e: TerminalException) {
                        e.printStackTrace()
                        runOnUiThread {
                            toast("error")
                        }
                    }
                })
}
#

this is my method

#

I have so many doubts about the 3rd parameter

wise solstice
#

let me ask my team

steady nimbus
#

I'll take a look and come back when i have something

#

thanks a lot

steady nimbus
#

do you have this references in Kotlin?