File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ implementation 'com.github.ctrlbytes:CodeKit:LATEST_VERSION_HERE'
23
23
## Usage
24
24
25
25
### ConnectivityUtils
26
-
27
26
``` kotlin
28
27
29
28
ConnectivityUtils .isInternetOn(context);
@@ -33,13 +32,11 @@ ConnectivityUtils.isWiFiOn(context);
33
32
```
34
33
35
34
### AppsInDevice
36
-
37
35
``` kotlin
38
36
AppsInDevice .isInstalled(context, packageName)
39
37
```
40
38
41
39
### Context KTX
42
-
43
40
``` kotlin
44
41
launchActivity(activityClass) { intent ->
45
42
putExtra()
@@ -52,13 +49,9 @@ toast(stringRes|string, LENGTH_SHORT)
52
49
53
50
openAppInPlayStore() // will open current app
54
51
openAppInPlayStore(appPackageName) // will open the specified package
55
-
56
- runSafe {
57
- // do things that may throw error but don't care about the error (error will be printed to the console)ō
58
- }
59
52
```
60
- ### Fragment KTX
61
53
54
+ ### Fragment KTX
62
55
``` kotlin
63
56
toast(stringRes|string)
64
57
toast(stringRes|string, LENGTH_SHORT )
@@ -90,4 +83,11 @@ format(simpleDateFormat)
90
83
val items = dbCursor.toList {
91
84
it.getString(0 )
92
85
}
86
+ ```
87
+
88
+ ### Utils KTX
89
+ ``` kotlin
90
+ runSafe {
91
+ // do things that may throw error (error will be printed to the console)
92
+ }
93
93
```
You can’t perform that action at this time.
0 commit comments