Google is committed to advancing racial equity for Black communities. See how.

FuchsiaViewController class

*<Null safety>*

A connection to a fuchsia view. It can be used to construct a FuchsiaView widget that will display the view's contents on their own layer.

Implementers

Constructors

FuchsiaViewController ({required int viewId, FuchsiaViewConnectionCallback? onViewConnected, FuchsiaViewConnectionCallback? onViewDisconnected, FuchsiaViewConnectionStateCallback? onViewStateChanged, FuchsiaPointerEventsCallback? onPointerEvent})

Constructor.

Properties

connected → bool

Returns true when platform view is connected.
read-only

fuchsiaViewsServiceFuchsiaViewsService

Returns the FuchsiaViewsService used to communicated with the embedder.
@visibleForTesting, read-only

hashCode → int

The hash code for this object. ...
read-only, inherited

onPointerEventFuchsiaPointerEventsCallback?

Callback when pointer events are dispatched on top of child view.
final

onViewConnectedFuchsiaViewConnectionCallback?

Callback when the connection to child's view is connected to view tree.
final

onViewDisconnectedFuchsiaViewConnectionCallback?

Callback when the child's view is disconnected from view tree.
final

onViewStateChangedFuchsiaViewConnectionStateCallback?

Callback when the child view's state changes.
final

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

viewId → int

The raw value of the ViewHolderToken where this view is attached.
final

viewport → dynamic

Returns the viewport rect of the child view in parent's coordinates. ...
read-only

whenConnected → Future

The future that completes when the platform view is connected.
read-only

Methods

clearFocus() Future<void>
connect({bool hitTestable: true, bool focusable: true, dynamic viewOcclusionHint: Rect.zero}) Future<void>

Connects to the platform view given it's viewId. ...

disconnect() Future<void>

Disconnects the view from the ViewHolderToken. ...

dispatchPointerEvent(dynamic event) Future<void>

Dispatch pointer events for the child view.

dispose() Future<void>

Dispose the underlying platform view controller.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

requestFocus(int viewRef) Future<void>

Requests that focus be transferred to the remote Scene represented by this connection.

toString() String

Returns a string representation of this object.
inherited

update({bool focusable: true, bool hitTestable: true, dynamic viewOcclusionHint: Rect.zero}) Future<void>

Updates properties on the platform view given it's viewId. ...

Operators

operator ==(Object other) bool

The equality operator. ...
inherited