@@ -24,7 +24,7 @@ dependencies {
24
24
25
25
```
26
26
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 >
28
28
29
29
``` java
30
30
public class MyApplication extends Application {
@@ -37,28 +37,46 @@ public class MyApplication extends Application {
37
37
38
38
```
39
39
40
- < b > Usage</ b >
40
+ ### Usage
41
41
42
+ <b >Saving Values</b >
42
43
``` java
43
44
FastSave . getInstance(). saveInt(key,value); // For saving Integer value
44
- FastSave . getInstance(). getInt(key); // For Getting Integer value
45
45
46
46
FastSave . getInstance(). saveFloat(key,value); // For saving Float value
47
- FastSave . getInstance(). getFloat(key); // For Getting Float value
48
47
49
48
// And so on for other types.
50
49
51
50
// For Objects and Lists of Objects
52
-
53
51
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
54
65
FastSave . getInstance(). getObject(key,classType); // For Getting Custom Object
55
66
56
- // Example on getting customObject
57
67
FastSave . getInstance(). getObject(key,Person . class); // assuming your custom class called Person
58
68
59
- FastSave . getInstance(). saveObjectList(key,listOfCustomObjects); // For Saving Custom Objects List
60
69
FastSave . getInstance(). getObjectList(key,classType); // For Getting Custom Objects List
61
70
71
+
72
+ ```
73
+
74
+ <b >Deleting Values</b >
75
+ ``` java
76
+
77
+ // Remove element by Key
78
+ FastSave . getInstance(). deleteValue(key)
79
+
62
80
// clear all sharedPrefereces
63
81
FastSave . getInstance(). clearSession();
64
82
0 commit comments