Package io.rong.imkit.utils.keyboard
Class KeyboardHeightPopupImpl
-
- All Implemented Interfaces:
public class KeyboardHeightPopupImpl
gusd
-
-
Constructor Summary
Constructors Constructor Description KeyboardHeightPopupImpl(Activity activity)
-
Method Summary
Modifier and Type Method Description void
showAtLocation(View parent, int gravity, int x, int y)
void
start()
Start the KeyboardHeightProvider, this must be called after the onResume of the Activity. void
stop()
Close the keyboard height provider, this provider will not be used anymore. void
setKeyboardHeightObserver(KeyboardHeightObserver observer)
Set the keyboard height observer to this provider. -
-
Method Detail
-
showAtLocation
void showAtLocation(View parent, int gravity, int x, int y)
-
start
void start()
Start the KeyboardHeightProvider, this must be called after the onResume of the Activity. PopupWindows are not allowed to be registered before the onResume has finished of the Activity.
-
stop
void stop()
Close the keyboard height provider, this provider will not be used anymore.
-
setKeyboardHeightObserver
void setKeyboardHeightObserver(KeyboardHeightObserver observer)
Set the keyboard height observer to this provider. The observer will be notified when the keyboard height has changed. For example when the keyboard is opened or closed.
- Parameters:
observer
- The observer to be added to this provider.
-
-
-
-