#import <FlutterRestorationPlugin.h>
Definition at line 12 of file FlutterRestorationPlugin.h.
◆ dataForFramework
- (NSDictionary *) dataForFramework |
|
|
|
|
implementation |
Definition at line 20 of file FlutterRestorationPlugin.mm.
80 {
82 return @{@"enabled" : @NO};
83 }
85 return @{@"enabled" : @YES};
86 }
87 return @{
88 @"enabled" : @YES,
90 };
91}
instancetype typedDataWithBytes:(NSData *data)
◆ handleMethodCall:result:
Definition at line 20 of file FlutterRestorationPlugin.mm.
38 if ([[
call method] isEqualToString:
@"put"]) {
39 NSAssert(
self.
pendingRequest == nil,
@"Cannot put data while a get request is pending.");
41 self.restorationData = [data
data];
43 }
else if ([[
call method] isEqualToString:
@"get"]) {
46 return;
47 }
48 NSAssert(
self.
pendingRequest == nil,
@"There can only be one pending request.");
49 self.pendingRequest =
result;
50 } else {
52 }
53}
void(^ FlutterResult)(id _Nullable result)
FLUTTER_DARWIN_EXPORT NSObject const * FlutterMethodNotImplemented
NSDictionary * dataForFramework()
FlutterResult pendingRequest
std::shared_ptr< const fml::Mapping > data
◆ 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 |
|
|
|
◆ NS_UNAVAILABLE [1/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ reset
◆ setRestorationData:
- (void) setRestorationData: |
|
(NSData*) |
data |
|
|
implementation |
Definition at line 20 of file FlutterRestorationPlugin.mm.
56 if (
data != _restorationData) {
57 _restorationData = [data copy];
58 }
59 _waitForData = NO;
62 self.pendingRequest = nil;
63 }
64}
◆ pendingRequest
|
readwritenonatomiccopyimplementation |
◆ restorationData
- (NSData*) restorationData |
|
readwritenonatomiccopy |
The documentation for this class was generated from the following files: