CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
80 stars 74 forks source link

File type support for vars feature. #625

Closed CTLalit closed 4 months ago

CTLalit commented 5 months ago

(SDK-3891)

Product Experiences -> Introduced variable type -> FILE

File type of variable can be registered in app after it is synced to dashboard. The variable will contain the latest file details along with path and listeners.

Example : cleverTapAPI?.defineFileVariable("some_variable_name") // used to register cleverTapAPI?.getVariable<String>("some_variable_name") // fetch file path cleverTapAPI?.getVariableValue("some_variable_name") // file path

Listeners: cleverTapAPI?.onVariablesChangedAndNoDownloadsPending cleverTapAPI?.onceVariablesChangedAndNoDownloadsPending