Skip to content

Commit 0dc05a4

Browse files
committed
ADD manager utils
1 parent 45f8dc2 commit 0dc05a4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.costular.kotlin_utils.manager
2+
3+
import android.content.ClipboardManager
4+
import android.content.Context
5+
import android.net.ConnectivityManager
6+
7+
/**
8+
* Created by costular on 14/08/17.
9+
*/
10+
fun Context.getClipboardManager() = getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
11+
12+
fun Context.getConnectivityManager() = getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager

0 commit comments

Comments
 (0)