private void onInputBarFieldLoaded(string path, GameObject inputBarFieldPrefab)
    {
        GameObject gameObject = UnityEngine.Object.Instantiate(inputBarFieldPrefab);

        if (gameObject != null)
        {
            InputBarField componentInChildren = gameObject.GetComponentInChildren <InputBarField>();
            gameObject.transform.SetParent(InputFieldContainer, worldPositionStays: false);
            if (OnInputBarFieldLoaded != null)
            {
                OnInputBarFieldLoaded(componentInChildren);
            }
            return;
        }
        throw new MissingReferenceException("The InputBarField prefab specified could not be found.");
    }
    private void onInputBarFieldLoaded(InputBarField inputBarField)
    {
        InputBarFieldLoader obj = inputBarFieldLoader;

        obj.OnInputBarFieldLoaded = (Action <InputBarField>)Delegate.Remove(obj.OnInputBarFieldLoaded, new Action <InputBarField>(onInputBarFieldLoaded));
        string tokenTranslation = Service.Get <Localizer>().GetTokenTranslation("Friends.FindFriendScreenController.FIND_FRIEND_PLACEHOLDER_TEXT");

        this.inputBarField = inputBarField;
        inputBarField.SetCharacterLimit(140);
        inputBarField.SetPlaceholderText(tokenTranslation);
        inputBarField.SetKeyboardReturnKey(NativeKeyboardReturnKey.Search);
        inputBarField.ShowSuggestions      = false;
        inputBarField.OpenKeyboardOnSelect = true;
        changeKeyboardState(currentState);
        inputBarField.OnTextChanged      = (Action <string>)Delegate.Combine(inputBarField.OnTextChanged, new Action <string>(onTextChanged));
        inputBarField.ESendButtonClicked = (System.Action)Delegate.Combine(inputBarField.ESendButtonClicked, new System.Action(onSendButtonClicked));
    }
    private void showKeyboard()
    {
        InputBarField inputBarField = Object.FindObjectOfType <InputBarField>();

        inputBarField.ShowKeyboard();
    }