SDK Connect
SDK connect is a service that allows you to connect your app remotely to the SDK using Bluetooth, or WiFi.
Initialize
Add Gradle dependency by adding the following code to your Android App
build.gradle
2. Create a single instance of StreamPay object context
wherever you need
3. Create StreamPay connect object and add StreamPay object to it
Show()
show(): display a view with the current state and the option to connect with two different methods (Bluetooth and WebSocket) and disconnect.
Disconnect()
disconnect(): return true if there is a session to disconnect or attempt to new connect to stop. return false otherwise.
getSession():
getSession(): return current session or null.
Find session data here
Last updated