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.
26 lines
915 B
26 lines
915 B
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) {
|
|
if (call.method.equals("getPlatformVersion")) {
|
|
result.success("Android " + android.os.Build.VERSION.RELEASE);
|
|
} else {
|
|
result.notImplemented();
|
|
}
|
|
}
|
|
}
|