Hi, My friends and I are working on an Android Apps. He had pass me a C# written in Xamarin and ask if I can used it in Unity3D.
I would like to ask is that possible?
Sample of C# code from Xamarin as below:
using Android.App;
using Android.Widget;
using Android.OS;
using Android.Bluetooth;
using Android.Content;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System;
namespace bScan
{
[Activity(Label = “bScan”, MainLauncher = true, Icon = “@drawable/icon”)]
public class cpdActivity : Activity, BluetoothAdapter.ILeScanCallback
{
private TextView proximityInfo;
// bluetooth scan related variables
private Handler scanHandler;
private BluetoothManager myBluetoothManager;
private BluetoothAdapter myBluetoothAdapter;
private int scanPeriod = 1000; //default;
// bluetooth data processing variables
private List beaconScreenName = new List();
private List beaconRSS = new List();
private List beaconDetectedTime = new List();