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 119 of file FlutterPlatformViews_Internal.h.

Method Documentation

◆ applyBlurBackdropFilters:

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

Definition at line 194 of file FlutterPlatformViews_Internal.mm.

194  :(NSArray<PlatformViewFilter*>*)filters {
195  FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
196  if (self.filters.count == 0 && filters.count == 0) {
197  return;
198  }
199  self.filters = filters;
200  NSUInteger index = 0;
201  for (index = 0; index < self.filters.count; index++) {
202  UIVisualEffectView* backdropFilterView;
203  PlatformViewFilter* filter = self.filters[index];
204  if (self.backdropFilterSubviews.count <= index) {
205  backdropFilterView = filter.backdropFilterView;
206  [self addSubview:backdropFilterView];
207  [self.backdropFilterSubviews addObject:backdropFilterView];
208  } else {
209  [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
210  }
211  }
212  for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
213  [self.backdropFilterSubviews[i - 1] removeFromSuperview];
214  [self.backdropFilterSubviews removeLastObject];
215  }
216 }

References backdropFilterSubviews, and PlatformViewFilter::backdropFilterView.

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 218 of file FlutterPlatformViews_Internal.mm.

218  {
219  if (!_backdropFilterSubviews) {
220  _backdropFilterSubviews = [[NSMutableArray alloc] init];
221  }
222  return _backdropFilterSubviews;
223 }

Referenced by applyBlurBackdropFilters:.


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