#include <FlutterRestorationPlugin.h>
Definition at line 12 of file FlutterRestorationPlugin.h.
◆ initWithChannel:restorationEnabled:
Definition at line 20 of file FlutterRestorationPlugin.mm.
24 restorationEnabled:(
BOOL)restorationEnabled {
26 self = [super init];
27 if (self) {
29 [self handleMethodCall:call result:result];
30 }];
32 _waitForData = restorationEnabled;
33 }
34 return self;
35}
#define FML_DCHECK(condition)
void setMethodCallHandler:(FlutterMethodCallHandler _Nullable handler)
◆ markRestorationComplete
| - (void) markRestorationComplete |
|
|
|
Definition at line 20 of file FlutterRestorationPlugin.mm.
66 {
67 _waitForData = NO;
68 if (self.pendingRequest != nil) {
70 self.pendingRequest([self dataForFramework]);
71 self.pendingRequest = nil;
72 }
73}
◆ NS_UNAVAILABLE [1/2]
| - (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
| + (instancetype) NS_UNAVAILABLE |
|
|
|
◆ reset
Reset the state restoration plugin to prepare for a hot restart.
This clears the restoration data and drops any pending requests.
Definition at line 20 of file FlutterRestorationPlugin.mm.
75 {
76 self.pendingRequest = nil;
77 self.restorationData = nil;
78}
◆ restorationData
| - (NSData*) restorationData |
|
readwritenonatomiccopy |
The documentation for this class was generated from the following files: