AtiSdkClient

class AtiSdkClient @JvmOverloads constructor(context: Context, config: AtiSdkConfig = AtiSdkConfig()) : AtiSdk

Default AtiSdk implementation backed by the remote Binder service.

Create one instance in an application-scoped holder and call connect before invoking Terminal operations. The SDK keeps all Binder and IPC details behind the public AtiSdk facade.

The default AtiSdkConfig binds to the wallee SoftPOS host package. Pass a configuration with a different AtiSdkConfig.hostPackageName to target another supported host package while keeping the Terminal API transport internal to the SDK.

Parameters

context

Application or application-scoped context used to bind to the Terminal service.

config

Terminal service host configuration for this SDK instance.

Constructors

Link copied to clipboard
constructor(context: Context, config: AtiSdkConfig = AtiSdkConfig())

Properties

Link copied to clipboard
open override val connectionState: StateFlow<AtiConnectionState>

Observable connection state for the remote payment service.

Link copied to clipboard
open override val terminal: TerminalApi

Canonical Terminal API facade.

Functions

Link copied to clipboard
open suspend override fun connect(): AtiConnectionInfo

Connects the ATI SDK to the remote payment service.

Connects the ATI SDK to the remote payment service using the Java-friendly callback API.

Link copied to clipboard
open override fun disconnect()

Disconnects from the remote payment service.