Hi,
i try to get the height of the android keyboard so i created the following method inside UnityPlayerNativeActivity:
public int getKeyBoardHeight(){
Rect aRect = new Rect();
mUnityPlayer.getView().getWindowVisibleDisplayFrame(aRect);
return aRect.height();
}
With that i get the visible height when the keyboard is open and substract it from screen height to have the keyboard height.
I want to know if it is possible to create a seperate class to do this so i don’t have to change or extend the UnityPlayerNativeActivity?