Flutter Engine
 
Loading...
Searching...
No Matches
FlutterRestorationPlugin.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERRESTORATIONPLUGIN_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERRESTORATIONPLUGIN_H_
7
8#import <UIKit/UIKit.h>
9
11
12@interface FlutterRestorationPlugin : NSObject
13- (instancetype)init NS_UNAVAILABLE;
14+ (instancetype)new NS_UNAVAILABLE;
15- (instancetype)initWithChannel:(FlutterMethodChannel*)channel
16 restorationEnabled:(BOOL)waitForData NS_DESIGNATED_INITIALIZER;
17
18@property(nonatomic, copy) NSData* restorationData;
20
21/**
22 * Reset the state restoration plugin to prepare for a hot restart.
23 *
24 * This clears the restoration data and drops any pending requests.
25 */
26- (void)reset;
27@end
28#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERRESTORATIONPLUGIN_H_
instancetype init NS_UNAVAILABLE
int BOOL