| FTSkinService | class FTSkinService
Copyright © 2019 FinTiv. All rights reserved. |
class FTSkinService
Copyright © 2019 FinTiv. All rights reserved.
| <init> | FTSkinService()
Copyright © 2019 FinTiv. All rights reserved. |
| SKIN_ID_DEFAULT_C | const val SKIN_ID_DEFAULT_C:
String
|
| getDefaultSkinHashMap | fun getDefaultSkinHashMap(context:
Context
):
HashMap
<
String
,
String
>
Retrieve user’s default skin |
| getIsBeaconDetected | fun getIsBeaconDetected(context:
Context
):
Boolean
Retrieve whether a beacon was detected |
| getMySkinSet | fun getMySkinSet(context:
Context
):
String
?
Retrieve user’s skins |
| getSkin | fun getSkin(context:
Context
, key:
String
):
String
?
Retrieve user’s skin by skin key |
| removeSkin | fun removeSkin(context:
Context
, key:
String
):
Unit
Remove user’s skin by skin key |
| saveMySkinSet | fun saveMySkinSet(context:
Context
, jsonObject:
JSONObject
):
Unit
Save user’s skin |
| saveSkin | fun saveSkin(context:
Context
, jsonObject:
JSONObject
, key:
String
):
Unit
Save user’s skin |
| setIsBeaconDetected | fun setIsBeaconDetected(context:
Context
, detected:
Boolean
):
Unit
TODO |
| setup | fun setup(walletId:
String
, bundleId:
String
, serverUrl:
String
? = null, apiVersion:
String
? = null, serviceResource:
String
? = null):
Unit
Configures the Skin Service platform. Must be called before any other call to any member of the framework |
| updateSkin | fun updateSkin(context:
Context
, from:
String
?, to:
String
?):
Unit
Update user’s skin |
interface FTSkinNotifier
Copyright © 2019 FinTiv. All rights reserved.
| updateSkin | abstract fun updateSkin():
Unit
Notify when beacon was detected in order to update beacon skin in the app |
open class FTSkinServiceViewModel : AndroidViewModel
Copyright © 2019 FinTiv. All rights reserved.
Skin service view model
| <init> | FTSkinServiceViewModel(appContext:
Application
)
Copyright © 2019 FinTiv. All rights reserved. Skin service view model |
| getMySkinService | fun getMySkinService():
Unit
Retrieve my skins from the server. |
| setBeaconSkin | fun setBeaconSkin(beaconId:
String
?):
Boolean
Validate whether beacon skin exists and save it |
| setDefaultSkin | fun setDefaultSkin():
Boolean
Validate whether default skin exists and save it |