如何检索使用用户 ID 创建的频道?

How to retrieve Channel created with userIDs?

SendBird .NET 文档提到了如何使用用户 ID 创建频道,但我们如何检索该频道?

然后文档提到了一种检索带有 URL 的频道的方法,但他们没有提到如何创建带有 URL 的频道。

我有点困惑。我错过了什么?您能否告诉我如何使用用户 ID 或频道 URL 创建和检索频道?

试试这个:

public async void ConnectToChannel(FormsChat.Model.User user, List<string> users) {
    GroupChannel group = null;
    IsBusy = true;

    GroupChannel.CreateChannelWithUserIds(users, true, (GroupChannel groupChannel, SendBirdException e) => {
        if (e != null)
        {
            // Error.
            return;
        }
        group = groupChannel;
     });
     await Task.Delay(3000);
     IsBusy = false;
     await Navigation.PushAsync(new ChatPage(user, group));
}

此外,请参阅此 sample for Xamarin.Forms using SendBird