You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.pkmnapps.nearby_connections;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* NearbyConnectionsPlugin
|
|
|
|
*/
|
|
|
|
public class NearbyConnectionsPlugin implements MethodCallHandler {
|
|
|
|
/**
|
|
|
|
* Plugin registration.
|
|
|
|
*/
|
|
|
|
public static void registerWith(Registrar registrar) {
|
|
|
|
final MethodChannel channel = new MethodChannel(registrar.messenger(), "nearby_connections");
|
|
|
|
channel.setMethodCallHandler(new NearbyConnectionsPlugin());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onMethodCall(MethodCall call, Result result) {
|
|
|
|
|
|
|
|
switch (call.method) {
|
|
|
|
|
|
|
|
default:
|
|
|
|
result.notImplemented();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|