/// <summary> /// Handles the user intent to resolve the cloud anchor associated with a room they have typed into the UI. /// </summary> public void OnResolveRoomClick() { var roomToResolve = UIController.GetRoomInputValue(); if (roomToResolve == 0) { UIController.ShowResolvingModeBegin("Invalid room code."); return; } string ipAddress = UIController.GetResolveOnDeviceValue() ? k_LoopbackIpAddress : UIController.GetIpAddressInputValue(); UIController.ShowResolvingModeAttemptingResolve(); RoomSharingClient roomSharingClient = new RoomSharingClient(); roomSharingClient.GetAnchorIdFromRoom(roomToResolve, ipAddress, (bool found, string cloudAnchorId) => { if (!found) { UIController.ShowResolvingModeBegin("Invalid room code."); } else { _ResolveAnchorFromId(cloudAnchorId); } }); }
/// <summary> /// Handles the user intent to resolve the cloud anchor associated with a room they have typed into the UI. /// </summary> public void OnResolveRoomClick() { var roomToResolve = UIManager.Instance().GetRoomInputValue(); if (roomToResolve == 0) { UIManager.Instance().ShowResolvingModeBegin("Invalid room code."); return; } string ipAddress = UIManager.Instance().GetIpAddressInputValue(); UIManager.Instance().ShowResolvingModeAttemptingResolve(); RoomSharingClient roomSharingClient = new RoomSharingClient(); roomSharingClient.GetAnchorIdFromRoom(roomToResolve, ipAddress, (bool found, string cloudAnchorId) => { if (!found) { UIManager.Instance().ShowResolvingModeBegin("Invalid room code."); } else { _ResolveAnchorFromId(roomToResolve, cloudAnchorId); } }); }