We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45f8dc2 commit 0dc05a4Copy full SHA for 0dc05a4
kotlin-utils/src/main/java/com/costular/kotlin_utils/manager/ManagerExtensions.kt
@@ -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