Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
ChildClippingView Class Reference

#include <FlutterPlatformViews_Internal.h>

Inheritance diagram for ChildClippingView:

Instance Methods

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

Detailed Description

Definition at line 187 of file FlutterPlatformViews.mm.

Method Documentation

◆ applyBlurBackdropFilters:

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

Definition at line 183 of file FlutterPlatformViews.mm.

201 :(NSArray<PlatformViewFilter*>*)filters {
202 FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
203 if (self.filters.count == 0 && filters.count == 0) {
204 return;
205 }
206 self.filters = filters;
207 NSUInteger index = 0;
208 for (index = 0; index < self.filters.count; index++) {
209 UIVisualEffectView* backdropFilterView;
210 PlatformViewFilter* filter = self.filters[index];
211 if (self.backdropFilterSubviews.count <= index) {
212 backdropFilterView = filter.backdropFilterView;
213 [self addSubview:backdropFilterView];
214 [self.backdropFilterSubviews addObject:backdropFilterView];
215 } else {
216 [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
217 }
218 }
219 for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
220 [self.backdropFilterSubviews[i - 1] removeFromSuperview];
221 [self.backdropFilterSubviews removeLastObject];
222 }
223}
NSMutableArray * backdropFilterSubviews()
#define FML_DCHECK(condition)
Definition logging.h:122

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 183 of file FlutterPlatformViews.mm.

225 {
226 if (!_backdropFilterSubviews) {
227 _backdropFilterSubviews = [[NSMutableArray alloc] init];
228 }
229 return _backdropFilterSubviews;
230}

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