Exemple #1
0
        protected override void OnActivityResult(int requestCode, Android.App.Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);

            if (requestCode == REQUEST_MESSAGING_CHANNEL_LIST)
            {
                if (resultCode == Android.App.Result.Ok && data != null)
                {
                    SendBirdSDK.JoinMessaging(data.GetStringExtra("channelUrl"));
                }
            }
            else if (requestCode == REQUEST_MEMBER_LIST)
            {
                if (resultCode == Android.App.Result.Ok && data != null)
                {
                    try {
                        SendBirdSDK.InviteMessaging(SendBirdSDK.GetCurrentChannel().url, new List <string>(data.GetStringArrayExtra("userIds")));
                    } catch (Exception e) {
                        Console.WriteLine(e.StackTrace);
                    }
                }
            }
        }