SharedPreference
Shared Preference is used to locally save data on the device.
Example
Using setData block to save a value of someValue
with the key someKey
.
Blocks
getData
Retrieve the saved data.
Type | Explanation | Required |
---|---|---|
Shared Preference | Shared Preference Component | Yes |
String | Key of the value you are trying to retrieve | Yes |
setData
Save data with the key value pair.
Type | Explanation | Required |
---|---|---|
Shared Preference | Shared Preference Component | Yes |
String | Key value | Yes |
String | Value you are trying to save | Yes |
removeData
Remove the data with the key value.
Type | Explanation | Required |
---|---|---|
Shared Preference | Shared Preference Component | Yes |
String | Key of the value you are trying to delete | Yes |