Flutter Engine
FlutterPlatformViewSemanticsContainer Class Reference

#import <SemanticsObject.h>

Inheritance diagram for FlutterPlatformViewSemanticsContainer:

Instance Methods

((unavailable("Use initWithAccessibilityContainer: instead") - __attribute__
(instancetype) - initWithSemanticsObject:


NSInteger index

Detailed Description

Designated to act as an accessibility container of a platform view.

This object does not take any accessibility actions on its own, nor has any accessibility label/value/trait/hint... on its own. The accessibility data will be handled by the platform view.

See also:

Definition at line 139 of file SemanticsObject.h.

Method Documentation

◆ __attribute__()

- ((unavailable("Use) initWithAccessibilityContainer:

◆ initWithSemanticsObject:()

- (instancetype) initWithSemanticsObject: (SemanticsObject*)  object

Definition at line 552 of file SemanticsObject.mm.

References FML_CHECK, and id.

552  :(SemanticsObject*)object {
553  FML_CHECK(object);
554  // Initialize with the UIView as the container.
555  // The UIView will not necessarily be accessibility parent for this object.
556  // The bridge informs the OS of the actual structure via
557  // `accessibilityContainer` and `accessibilityElementAtIndex`.
558  if (self = [super initWithAccessibilityContainer:object.bridge->view()]) {
559  _semanticsObject = object;
561  object.bridge->GetPlatformViewsController();
562  if (controller) {
563  _platformView = [[controller->GetPlatformViewByID(object.node.platformViewId) view] retain];
564  }
565  }
566  return self;
567 }
#define FML_CHECK(condition)
Definition: logging.h:68

Property Documentation

◆ index

- (NSInteger) index

The position inside an accessibility container.

Definition at line 144 of file SemanticsObject.h.

Referenced by SemanticsObjectContainer::initWithSemanticsObject:bridge:.

The documentation for this class was generated from the following files: