Пример #1
0
        public void StartPairBLE(BlePairCallbackSuccess success, BlePairCallbackError error)
        {
            Debug.Log("<><><>StartBLE<><>");
            AndroidJavaObject context = AndroidContextHolder.GetAndroidContext();

            BlePairCallback mBlePairCallback = new BlePairCallback();

            mBlePairCallback.setListener(success, error);
            bool result = BleManager.Call <bool>("startPairServer", context, mBlePairCallback);

            Debug.Log("<><><>StartBLE result <><>" + result);
        }
 public void setListener(BlePairCallbackSuccess success, BlePairCallbackError error)
 {
     mSuccess = success;
     mError   = error;
 }