public override void OnLost(NearbyMessage message)
        {
            base.OnLost(message);

            var emotionMsg = EmotionMessage.Deserialize(message.GetContent());

            OnLostHandler?.Invoke(emotionMsg);
        }
Esempio n. 2
0
        public override void OnLost(Android.Gms.Nearby.Messages.Message message)
        {
            var contents = Encoding.UTF8.GetString(message.GetContent());

            _activity.UpdateMessage("Lost message:\n\n" +
                                    $"Namespace - '{message.Namespace}'\n" +
                                    $"Content - '{contents}'.");
        }
Esempio n. 3
0
 public override void OnFound(Message message)
 {
     OnMessageReceived?.Invoke(message.Type, message.GetContent());
 }
Esempio n. 4
0
 public override void OnLost(Message message)
 {
     OnMessageLost?.Invoke(message.Type, message.GetContent());
 }
        public override void OnFound(NearbyMessage message)
        {
            var emotionMsg = EmotionMessage.Deserialize(message.GetContent());

            OnFoundHandler?.Invoke(emotionMsg);
        }