Skip to content

Commit 478ab29

Browse files
committed
Update Readme
1 parent ad78929 commit 478ab29

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+25-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424
2525
```
2626

27-
You have to initialize the FastSave library inside your application class :
27+
<b>You have to initialize the FastSave library inside your application class :</b>
2828

2929
```java
3030
public class MyApplication extends Application {
@@ -37,28 +37,46 @@ public class MyApplication extends Application {
3737

3838
```
3939

40-
<b>Usage</b>
40+
### Usage
4141

42+
<b>Saving Values</b>
4243
```java
4344
FastSave.getInstance().saveInt(key,value); // For saving Integer value
44-
FastSave.getInstance().getInt(key); // For Getting Integer value
4545

4646
FastSave.getInstance().saveFloat(key,value); // For saving Float value
47-
FastSave.getInstance().getFloat(key); // For Getting Float value
4847

4948
// And so on for other types.
5049

5150
//For Objects and Lists of Objects
52-
5351
FastSave.getInstance().saveObject(key,customObject); // For Saving Custom Object
52+
53+
54+
```
55+
56+
<b>Getting Values</b>
57+
```java
58+
59+
FastSave.getInstance().getInt(key); // For Getting Integer value
60+
FastSave.getInstance().getFloat(key); // For Getting Float value
61+
62+
// And so on for other types.
63+
64+
//For Objects and Lists of Objects
5465
FastSave.getInstance().getObject(key,classType); // For Getting Custom Object
5566

56-
//Example on getting customObject
5767
FastSave.getInstance().getObject(key,Person.class); // assuming your custom class called Person
5868

59-
FastSave.getInstance().saveObjectList(key,listOfCustomObjects); // For Saving Custom Objects List
6069
FastSave.getInstance().getObjectList(key,classType); // For Getting Custom Objects List
6170

71+
72+
```
73+
74+
<b>Deleting Values</b>
75+
```java
76+
77+
//Remove element by Key
78+
FastSave.getInstance().deleteValue(key)
79+
6280
//clear all sharedPrefereces
6381
FastSave.getInstance().clearSession();
6482

0 commit comments

Comments
 (0)