AndroidViewController class Null safety

Controls an Android view.

Typically created with PlatformViewsService.initAndroidView.

Inheritance
Implementers

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
id int
The unique identifier of the Android view controlled by this controller.
@Deprecated('Call `controller.viewId` instead. ' 'This feature was deprecated after v1.20.0-2.0.pre.'), read-only
isCreated bool
Whether the platform view has already been created.
read-only
pointTransformer PointTransformer
Converts a given point from the global coordinate system in logical pixels to the local coordinate system for this box. [...]
write-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textureId int?
Returns the texture entry id that the Android view is rendering into. [...]
read-only
viewId int
The unique identifier of the Android view controlled by this controller.
final

Methods

addOnPlatformViewCreatedListener(PlatformViewCreatedCallback listener) → void
Adds a callback that will get invoke after the platform view has been created.
clearFocus() Future<void>
Clears the focus from the Android View if it is focused.
override
create() Future<void>
Creates the Android View. [...]
dispatchPointerEvent(PointerEvent event) Future<void>
Converts the PointerEvent and sends an Android MotionEvent to the view. [...]
override
dispose() Future<void>
Disposes the Android view. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeOnPlatformViewCreatedListener(PlatformViewCreatedCallback listener) → void
Removes a callback added with addOnPlatformViewCreatedListener.
sendMotionEvent(AndroidMotionEvent event) Future<void>
Sends an Android MotionEvent to the view. [...]
setLayoutDirection(TextDirection layoutDirection) Future<void>
Sets the layout direction for the Android view.
setSize(Size size) Future<void>
Sizes the Android View. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

pointerAction(int pointerId, int action) int
Creates a masked Android MotionEvent action value for an indexed pointer.

Constants

kActionCancel → const int
Action code for when a motion event has been canceled. [...]
3
kActionDown → const int
Action code for when a primary pointer touched the screen. [...]
0
kActionMove → const int
Action code for when the event only includes information about pointer movement. [...]
2
kActionPointerDown → const int
Action code for when a secondary pointer touched the screen. [...]
5
kActionPointerUp → const int
Action code for when a secondary pointer stopped touching the screen. [...]
6
kActionUp → const int
Action code for when a primary pointer stopped touching the screen. [...]
1
kAndroidLayoutDirectionLtr → const int
Android's View.LAYOUT_DIRECTION_LTR value.
0
kAndroidLayoutDirectionRtl → const int
Android's View.LAYOUT_DIRECTION_RTL value.
1