Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.Registrar

class DtmfPlugin : FlutterPlugin, MethodCallHandler {

Expand All @@ -25,10 +24,7 @@ class DtmfPlugin : FlutterPlugin, MethodCallHandler {
var channel: MethodChannel? = null
private lateinit var applicationContext: Context
private lateinit var audioManager: AudioManager
@JvmStatic
fun registerWith(registrar: Registrar) {
setUpChannels(registrar.messenger())
}

fun setUpChannels(messenger: BinaryMessenger) {
channel = MethodChannel(messenger, "flutter_dtmf")
channel?.setMethodCallHandler(DtmfPlugin())
Expand Down