Exemple #1
0
            public void onDidReceiveData(AndroidJavaObject dataReceived)
            {
                var dataFromAndroid = dataReceived.Get <AndroidJavaObject>("ReceivedData");
                var byteData        = AndroidJNIHelper.ConvertFromJNIArray <byte[]>(dataFromAndroid.GetRawObject());

                _syncDelegate.OnDidReceiveData(byteData);
            }
Exemple #2
0
        public static void onDidReceiveData(IntPtr value, UInt64 length)
        {
            byte[] managedArray = new byte[length];
            Marshal.Copy(value, managedArray, 0, (int)length);

            _syncMessageHandler.OnDidReceiveData(managedArray);
        }
Exemple #3
0
            public static void onDidReceiveData(IntPtr value, ulong length)
            {
                var managedArray = new byte[length];

                Marshal.Copy(value, managedArray, 0, (int)length);

                _syncDelegate.OnDidReceiveData(managedArray);
            }