lpw
2022-02-15 2e29a3a585524a054640bb6e7bdf26fe77ba1f17
commit | author | age
2e29a3 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #if !TARGET_OS_TV
10
11 #import <UIKit/UIKit.h>
12
13 @protocol FBSDKWebDialogViewDelegate;
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 NS_SWIFT_NAME(FBWebDialogView)
18 @interface FBSDKWebDialogView : UIView
19
20 @property (nonatomic, weak) id<FBSDKWebDialogViewDelegate> delegate;
21
22 - (void)loadURL:(NSURL *)URL;
23 - (void)stopLoading;
24
25 @end
26
27 NS_SWIFT_NAME(WebDialogViewDelegate)
28 @protocol FBSDKWebDialogViewDelegate <NSObject>
29
30 - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary<NSString *, id> *)results;
31 - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error;
32 - (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView;
33 - (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView;
34
35 @end
36
37 NS_ASSUME_NONNULL_END
38
39 #endif