SurfaceAndroidViewController class
Controls an Android view that is composed using a GL texture. This controller is created from the PlatformViewsService.initSurfaceAndroidView factory, and is defined for backward compatibility.
- Inheritance
-
- Object
- PlatformViewController
- AndroidViewController
- SurfaceAndroidViewController
Properties
- awaitingCreation → bool
-
True if create has not been successfully called the platform view.
no setterinherited
-
createdCallbacks
→ List<
PlatformViewCreatedCallback> -
The created callbacks that are invoked after the platform view has been
created.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCreated → bool
-
Whether the platform view has already been created.
no setterinherited
- pointTransformer ↔ PointTransformer
-
Converts a given point from the global coordinate system in logical pixels
to the local coordinate system for this box.
getter/setter pairinherited
- requiresViewComposition → bool
-
True if the view requires native view composition rather than using a
texture to render.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textureId → int?
-
Returns the texture entry id that the Android view is rendering into.
no setteroverride
- viewId → int
-
The unique identifier of the Android view controlled by this controller.
finalinherited
Methods
-
addOnPlatformViewCreatedListener(
PlatformViewCreatedCallback listener) → void -
Adds a callback that will get invoke after the platform view has been
created.
inherited
-
clearFocus(
) → Future< void> -
Clears the focus from the Android View if it is focused.
inherited
-
create(
{Size? size, Offset? position}) → Future< void> -
Creates the platform view with the initial
size
.inherited -
dispatchPointerEvent(
PointerEvent event) → Future< void> -
Converts the PointerEvent and sends an Android MotionEvent
to the view.
inherited
-
dispose(
) → Future< void> -
Disposes the Android view.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeOnPlatformViewCreatedListener(
PlatformViewCreatedCallback listener) → void -
Removes a callback added with addOnPlatformViewCreatedListener.
inherited
-
sendMotionEvent(
AndroidMotionEvent event) → Future< void> -
Sends an Android MotionEvent
to the view.
inherited
-
setLayoutDirection(
TextDirection layoutDirection) → Future< void> -
Sets the layout direction for the Android view.
inherited
-
setOffset(
Offset off) → Future< void> -
Sets the offset of the platform view.
override
-
setSize(
Size size) → Future< Size> -
Sizes the Android View.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited