public static class Terminal.Companion
| Modifier and Type | Method and Description |
|---|---|
Terminal |
getInstance()
Returns the current instance of the
class Terminal object. This instance should have been
initialized already by calling initTerminal. |
void |
initTerminal(android.content.Context context,
LogLevel logLevel,
ConnectionTokenProvider tokenProvider,
TerminalListener listener)
Initializes a terminal for the given context.
|
void |
initTerminal(android.content.Context context,
ConnectionTokenProvider tokenProvider,
TerminalListener listener)
Initializes a terminal for the given context.
|
boolean |
isInitialized()
Returns whether a
class Terminal instance currently exists. |
@JvmStatic
@JvmOverloads
public void initTerminal(@NotNull
android.content.Context context,
@NotNull
LogLevel logLevel,
@NotNull
ConnectionTokenProvider tokenProvider,
@NotNull
TerminalListener listener)
Initializes a terminal for the given context.
context - The Context of the running Android applicationlogLevel - The level of logging verbosity to use in this Terminal instancetokenProvider - The interface ConnectionTokenProvider to use when a new token is neededlistener - The interface TerminalListener to inform of events in the Terminal lifecycle@JvmStatic
@JvmOverloads
public void initTerminal(@NotNull
android.content.Context context,
@NotNull
ConnectionTokenProvider tokenProvider,
@NotNull
TerminalListener listener)
Initializes a terminal for the given context.
context - The Context of the running Android applicationtokenProvider - The level of logging verbosity to use in this Terminal instancelistener - The interface ConnectionTokenProvider to use when a new token is needed@JvmStatic public boolean isInitialized()
Returns whether a class Terminal instance currently exists.
class Terminal@JvmStatic @NotNull public Terminal getInstance()
Returns the current instance of the class Terminal object. This instance should have been
initialized already by calling initTerminal.
class Terminal object that provides the main point of interaction with the
reader and the Stripe APIclass Terminal,
initTerminal