protected override void OnStart() { // Handle when your app starts SendBirdClient.Init(ChelperPro.Properties.Resources.APP_ID); //StripeConfiguration.SetApiKey(ChelperPro.Properties.Resources.PB_KEY); }
static void Main(string[] args) { SendBirdClient.Init("52C4347B-C9B0-4E62-81D6-96EB40517902"); //SendBirdClient.Connect("tom", (User user, SendBirdException e) => //{ // if (e != null) // { // // Error // return; // } //}); OpenChannel.GetChannel("sendbird_open_channel_43739_172b1997dcc4c9bbfc49bc0533303c8017bb2d70", (OpenChannel openChannel, SendBirdException e) => { if (e != null) { // Error! return; } Console.WriteLine("canale aperto"); // Successfully fetched the channel. // Do something with openChannel. }); Console.Read(); }
// GET: SendBird public ActionResult Index() { string APP_ID = "75DC34C9-03AE-4573-A69A-63FD75B7300E"; //SendBirdClient.Init(APP_ID); //var result = ""; string USE_ID = "T_tin2"; //string ACCESS_TOKEN = "c4a2132e3b709eb947cb00b7a1c4c3326d66853c"; SendBirdClient.Init(APP_ID); SendBirdClient.ChannelHandler channelHandler = new SendBirdClient.ChannelHandler(); channelHandler.OnMessageReceived = (BaseChannel baseChannel, BaseMessage baseMessage) => { //baseMessage.MessageId.ToString(); // message received }; SendBirdClient.AddChannelHandler("testchannel1", channelHandler); SendBirdClient.Connect(USE_ID, (User user, SendBirdException connectException) => { // get channel GroupChannel.GetChannel("sendbird_group_channel_137287723_07e33e8b58e8f3d71f7a7cccb829ccc3ffbfa96c", (GroupChannel groupChannel, SendBirdException getChannelException) => { // send message //groupChannel.SendUserMessage("you welcome.", // (UserMessage userMessage, SendBirdException sendMessageException) => { // // message sent // }); }); }); return(View()); }
public App() { InitializeComponent(); AppResources.Culture = CrossMultilingual.Current.DeviceCultureInfo; StripeConfiguration.SetApiKey("sk_live_XXXXXXXXXXXXXXX"); SendBirdClient.Init(ChelperPro.Properties.Resources.APP_ID); MainPage = new MySplashScreen(); }
public App() { InitializeComponent(); SendBirdClient.Init(Crosshelper.Properties.Resources.APP_ID); //MainPage = new NavigationPage((Page)Activator.CreateInstance(typeof(HomePage))) { //BarBackgroundColor = Color.FromHex("#FF4E18"), //BarTextColor = Color.White }; MainPage = new SignInPage(); }
void Awake() { SendBirdClient.SetupUnityDispatcher(gameObject); StartCoroutine(SendBirdClient.StartUnityDispatcher); SendBirdClient.Init("9DA1B1F4-0BE6-4DA8-82C5-2E81DAB56F23"); // SendBird Sample Application ID SendBirdClient.Log += (message) => { Debug.Log(message); }; }
private void Init() { coroutineHost = new GameObject().AddComponent <MonoHost>(); SendBirdClient.SetupUnityDispatcher(coroutineHost.gameObject); coroutineHost.StartCoroutine(SendBirdClient.StartUnityDispatcher); SendBirdClient.Init("71CAF499-268F-49A3-A2F5-9DF09F275FB8"); channelHandler = new SendBirdClient.ChannelHandler(); chid = channelHandler.GetHashCode().ToString(); channelHandler.OnMessageReceived += ChannelHandler_OnMessageRecieved; SendBirdClient.AddChannelHandler(chid, channelHandler); }
void Awake() { Instance = this; SendBirdClient.SetupUnityDispatcher(gameObject); // Set SendBird gameobject to DontDestroyOnLoad. StartCoroutine(SendBirdClient.StartUnityDispatcher); // Start a Unity dispatcher. SendBirdClient.Init("5311CDB0-4A1F-4DB2-8939-A26EC98290B5"); // SendBird Sample Application ID SendBirdClient.Log += (message) => { Debug.Log(message); }; }
private void Window_Loaded(object sender, RoutedEventArgs e) { SendBirdClient.Init(APP_ID); SendBirdClient.Connect(USER_ID, (User user, SendBirdException z) => { if (z != null) { MessageBox.Show(z.Message); return; } else { MessageBox.Show("User Connected"); } }); }
void Awake() { SendBirdClient.SetupUnityDispatcher(gameObject); StartCoroutine(SendBirdClient.StartUnityDispatcher); SendBirdClient.Init("44153C8C-8CEB-468C-AAA3-1278F203B60F"); // SendBird Sample Application ID SendBirdClient.Log += (message) => { Debug.Log(message); }; UnityARSessionNativeInterface.ARUserAnchorAddedEvent += AddAnchor; UnityARSessionNativeInterface.ARUserAnchorRemovedEvent += RemoveAnchor; m_Clones = new HashSet <string>(); m_messages = new Hashtable(); origLocation = GameObject.Find("OriginalLocation"); locationManager = origLocation.GetComponent <LocationManager>(); }
public ChanelsListPageViewModel( INavigationService navigationService) { _navigationService = navigationService; SendBirdClient.Init(ConstantsHelper.APP_ID); ChanelsList = new ObservableCollection <ChanelModel>(new[] { new ChanelModel() { UserImage = "Add", UserName = "******", LastMessege = "asfewegwe", MessegeCount = 1 }, new ChanelModel() { UserImage = "Add", UserName = "******", LastMessege = "Hello ", MessegeCount = 1 }, new ChanelModel() { UserImage = "Add", UserName = "******", LastMessege = "", MessegeCount = 0 }, new ChanelModel() { UserImage = "Add", UserName = "******", LastMessege = "Hello dude", MessegeCount = 1 }, new ChanelModel() { UserImage = "Add", UserName = "******", LastMessege = "", MessegeCount = 0 }, }); }
public void InitWithApplicationId() { SendBirdClient.Init(_context.GetApplicationId()); if (_context.SetInfoLogging()) { SendBirdClient.LoggerLevel = SendBirdClient.LOGGER_INFO; } SendBirdClient.ConnectionHandler ch = new SendBirdClient.ConnectionHandler(); ch.OnReconnectFailed = () => { // Auto reconnecting failed. Call `connect` to reconnect to SendBird. LogMessage("OnReconnectFailed"); _completionHandler.OnReconnectFailed(); }; ch.OnReconnectStarted = () => { // Network has been disconnected. Auto reconnecting starts. LogMessage("OnReconnectStarted"); _completionHandler.OnReconnectStarted(); }; ch.OnReconnectSucceeded = () => { LogMessage("OnReconnectSucceeded"); _completionHandler.OnReconnectSucceeded(); }; SendBirdClient.AddConnectionHandler("UNIQUE_HANDLER_ID", ch); (new SendBirdAPIChannelHandler(_context, _completionHandler, _cache)).AddChannelHandler(); //SBD }
public App() { InitializeComponent(); SendBirdClient.Init(Resource.APP_ID); MainPage = new NavigationPage(new MainPage()); }
public void InitializeMessenger() { SendBirdClient.Init("46497603-C6C5-4E64-9E05-DCCAF5ED66D1"); Debug.WriteLine("SendBirdClient Initialized"); }
private void InitSendBird() { SendBirdClient.Init("4BF3A2F0-9767-446A-B771-79CF34C611E5"); }