Package com.ft.skinService

Types

| FTSkinService | class FTSkinService
Copyright © 2019 FinTiv. All rights reserved. |

FTSkinService

class FTSkinService

Copyright © 2019 FinTiv. All rights reserved.

Constructors

| <init> | FTSkinService()
Copyright © 2019 FinTiv. All rights reserved. |

Companion Object Properties

| SKIN_ID_DEFAULT_C | const val SKIN_ID_DEFAULT_C:String |

Companion Object Functions

| 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 |

FTSkinNotifier

interface FTSkinNotifier

Copyright © 2019 FinTiv. All rights reserved.

Functions

| updateSkin | abstract fun updateSkin():Unit
Notify when beacon was detected in order to update beacon skin in the app |

FTSkinServiceViewModel

open class FTSkinServiceViewModel : AndroidViewModel

Copyright © 2019 FinTiv. All rights reserved.
Skin service view model

Constructors

| <init> | FTSkinServiceViewModel(appContext:Application)
Copyright © 2019 FinTiv. All rights reserved. Skin service view model |

Functions

| 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 |

Companion Object Properties

| chameleonMap | var chameleonMap:HashMap<String,String> |