InputTransferToken
public
final
class
InputTransferToken
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.window.InputTransferToken |
A token that can be used to request focus on or to transfer touch gesture to a
SurfaceControlViewHost
or SurfaceControl
that has an input channel.
The SurfaceControl
needs to have been registered for input via
WindowManager.registerUnbatchedSurfaceControlInputReceiver(InputTransferToken, SurfaceControl, Looper, SurfaceControlInputReceiver)
or
WindowManager.registerBatchedSurfaceControlInputReceiver(InputTransferToken, SurfaceControl, Choreographer, SurfaceControlInputReceiver)
and the
returned token can be used to call
WindowManager.transferTouchGesture(InputTransferToken, InputTransferToken)
For SurfaceControlViewHost
, the token can be retrieved via
SurfaceControlViewHost.SurfacePackage#getInputTransferToken()
Summary
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<InputTransferToken> |
CREATOR
|
Inherited methods | |
---|---|