Flutter iOS Embedder
ChildClippingView Class Reference

#import <FlutterPlatformViews_Internal.h>

Inheritance diagram for ChildClippingView:

Instance Methods

(void) - applyBlurBackdropFilters:
 
(NSMutableArray *) - backdropFilterSubviews
 

Detailed Description

Definition at line 123 of file FlutterPlatformViews_Internal.h.

Method Documentation

◆ applyBlurBackdropFilters:

- (void) applyBlurBackdropFilters: (NSArray<PlatformViewFilter*>*)  filters

Definition at line 157 of file FlutterPlatformViews_Internal.mm.

157  :(NSArray<PlatformViewFilter*>*)filters {
158  FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
159  if (self.filters.count == 0 && filters.count == 0) {
160  return;
161  }
162  self.filters = filters;
163  NSUInteger index = 0;
164  for (index = 0; index < self.filters.count; index++) {
165  UIVisualEffectView* backdropFilterView;
166  PlatformViewFilter* filter = self.filters[index];
167  if (self.backdropFilterSubviews.count <= index) {
168  backdropFilterView = filter.backdropFilterView;
169  [self addSubview:backdropFilterView];
170  [self.backdropFilterSubviews addObject:backdropFilterView];
171  } else {
172  [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
173  }
174  }
175  for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
176  [self.backdropFilterSubviews[i - 1] removeFromSuperview];
177  [self.backdropFilterSubviews removeLastObject];
178  }
179 }

References backdropFilterSubviews, and PlatformViewFilter::backdropFilterView.

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 181 of file FlutterPlatformViews_Internal.mm.

181  {
182  if (!_backdropFilterSubviews) {
183  _backdropFilterSubviews = [[NSMutableArray alloc] init];
184  }
185  return _backdropFilterSubviews;
186 }

Referenced by applyBlurBackdropFilters:.


The documentation for this class was generated from the following files:
-[ChildClippingView backdropFilterSubviews]
NSMutableArray * backdropFilterSubviews()
Definition: FlutterPlatformViews_Internal.mm:181
PlatformViewFilter
Definition: FlutterPlatformViews_Internal.h:84