Model microphone permission for voice recorder host tests
This commit is contained in:
1 parent
c31bdf74d8
commit
537814e7fd
3 files changed
+11
No files matched your search
@@ -0,0 +1,3 @@
|
||||
package android
|
||||
|
||||
object Manifest { object permission { const val RECORD_AUDIO = "android.permission.RECORD_AUDIO" } }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package android.content.pm
|
||||
|
||||
object PackageManager { const val PERMISSION_GRANTED = 0 }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package androidx.core.content
|
||||
|
||||
import com.utun.chat.RecorderHostContext
|
||||
|
||||
object ContextCompat { fun checkSelfPermission(context: RecorderHostContext, name: String) = if (context.permissionGranted) 0 else -1 }
|
||||
Reference in new issue
Block a user