initTerminal

fun initTerminal(context: Context, logLevel: LogLevel = LogLevel.NONE, tokenProvider: ConnectionTokenProvider, listener: TerminalListener)

Initializes a terminal for the given context.

Parameters

context

The Context of the running Android application

logLevel

The level of logging verbosity to use in this Terminal instance

tokenProvider

The ConnectionTokenProvider to use when a new token is needed

listener

The TerminalListener to inform of events in the Terminal lifecycle


fun initTerminal(context: Context, logLevel: LogLevel = LogLevel.NONE, tokenProvider: ConnectionTokenProvider, listener: TerminalListener, offlineListener: OfflineListener?)

Initializes a terminal for the given context.

Parameters

context

The Context of the running Android application

logLevel

The level of logging verbosity to use in this Terminal instance

tokenProvider

The ConnectionTokenProvider to use when a new token is needed

listener

The TerminalListener to inform of events in the Terminal lifecycle

offlineListener

The OfflineListener to inform of stripe connectivity events and and results from forwarded payments made while offline.