I looked into the official documentation but there was only a single line telling me that it's a wrapper class for proxying calls to another input connection. I didn't understand what it said.
I want to know :
- what actually is
InputConnectionWrapper
and what does it do ? - what is
sendKeyEvent(Keyevent keyevent)
[one of it's method to override] ?
InputConnectionWrapper
class is a helper class or a class built usingInputConnection
class. Where the use ofInputConnection
class isWhich means that we can read/perform operations from an input view from different scenario's. For example:
getTextAfterCursor
method helps to obtain the text after the cursor.sendKeyEvent
method is to send a key event to the input view, like backpress, return etc.