Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterPluginAppLifeCycleDelegate(TestUtils) Category Reference

Instance Methods

(void) - removeDelegate:
 

Detailed Description

Definition at line 17 of file FlutterPluginAppLifeCycleDelegateTest.mm.

Method Documentation

◆ removeDelegate:

- (void) removeDelegate: (NSObject<FlutterApplicationLifeCycleDelegate>*)  delegate

Definition at line 14 of file FlutterPluginAppLifeCycleDelegateTest.mm.

22 :(NSObject<FlutterApplicationLifeCycleDelegate>*)delegate {
23 // Access the private _delegates member via Key-Value Coding (KVC)
24 NSPointerArray* delegates = [self valueForKey:@"_delegates"];
25 for (NSUInteger i = 0; i < delegates.count; i++) {
26 if ([delegates pointerAtIndex:i] == (__bridge void*)delegate) {
27 [delegates removePointerAtIndex:i];
28 break;
29 }
30 }
31}

The documentation for this category was generated from the following file: