Package com.ft.mcp

Types

| FTMobileCommerce | object FTMobileCommerce
Copyright © 2019 FinTiv. All rights reserved. |
| ScanQRActivity | class ScanQRActivity : AppCompatActivity |

FTMobileCommerce

object FTMobileCommerce

Copyright © 2019 FinTiv. All rights reserved.

Functions

| currentToken | fun currentToken(context:Context):FTMCPersonToken?
Get person token instance |
| saveToken | fun saveToken(context:Context, token:FTMCPersonToken):Unit
Persist person token |
| setup | fun setup(walletId:String, endpoint:String? = null, apiVersion:String= "v2"):Unit
Configures the Mobile Commerce platform. Must be called before any other call to any member of the framework |

currentToken

fun currentToken(context:Context):FTMCPersonToken?

Get person token instance

Parameters

context - app context

saveToken

fun saveToken(context:Context, token:FTMCPersonToken):Unit

Persist person token

Parameters

context - app context
token - person token object

setup

fun setup(walletId:String, endpoint:String? = null, apiVersion:String= "v2"):Unit

Configures the Mobile Commerce platform. Must be called before any other call to any member of the framework

Parameters

walletId - client’s WalletId
endpoint - optional custom client endpoint
apiVersion - optional custom api version

ScanQRActivity

class ScanQRActivity : AppCompatActivity

Constructors

| <init> | ScanQRActivity() |

Functions

| onCreate | fun onCreate(savedInstanceState:Bundle?):Unit |
| onStop | fun onStop():Unit |

Companion Object Properties

| QR_CODE_PARAMETER | const val QR_CODE_PARAMETER:String |
| REQUEST_CODE | const val REQUEST_CODE:Int |
| REWARD_INSTANCE_ID_PARAMETER | const val REWARD_INSTANCE_ID_PARAMETER:String |
| TYPE_PARAMETER | const val TYPE_PARAMETER:String |