blob: 937ac00cefc88bd2e0ba028d160031a2a1183bc4 [file] [log] [blame] [view]
# FuchsiaViewsService class
*[<Null safety>](https://dart.dev/null-safety)*
<p>Defines a singleton <code>PlatformViewChannel</code> used to create and control
Fuchsia specific platform views.</p>
## Properties
##### [hashCode](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [platformViewChannel](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/platformViewChannel.md) &#8594; dynamic
The <code>MethodChannel</code> used to communicate with Flutter Embedder.
_<span class="feature">read-only</span>_
##### [runtimeType](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
## Methods
##### [createView](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/createView.md)(int viewId, {bool hitTestable = true, bool focusable = true, dynamic viewOcclusionHint = Rect.zero}) Future&lt;void>
Creates a platform view with <code>viewId</code> and given properties.
##### [deregister](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/deregister.md)(int viewId) void
Deregister existing <code>MethodCall</code> handler for a given <code>viewId</code>.
##### [destroyView](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/destroyView.md)(int viewId) Future&lt;void>
Destroys the platform view associated with <code>viewId</code>.
##### [noSuchMethod](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature">inherited</span>_
##### [register](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/register.md)(int viewId, Future handler(dynamic call)?) void
Register a <code>MethodCall</code> handler for a given <code>viewId</code>.
##### [toString](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/toString.md)() String
A string representation of this object.
_<span class="feature">inherited</span>_
##### [updateView](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/updateView.md)(int viewId, {bool hitTestable = true, bool focusable = true, dynamic viewOcclusionHint = Rect.zero}) Future&lt;void>
Updates view properties of the platform view associated with <code>viewId</code>.
## Operators
##### [operator ==](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature">inherited</span>_
## Static Properties
##### [instance](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService/instance.md) &#8594; [FuchsiaViewsService](../package-fuchsia_scenic_flutter_fuchsia_view/FuchsiaViewsService-class.md)
_<span class="feature">final</span>_